PyCQA / PyCQA/pycodestyle

E211: not detected in line with print statement/function

Open
#338 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

undecided
Dominant language
Python
Stars
5.2k
Forks
754
PR merge metrics
No merged PRs in 30d

Description

pep8 doesn't detect E211 (whitespace before ‘(‘ ) in this file

from __future__ import print_function

print ('abc')

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported snippet with the pycodestyle checker and trace the E211 detection entry point. Confirm how the print statement/function case is classified, then add or update coverage so the example is reported as E211 and run the relevant test suite.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.