PyCQA / PyCQA/pycodestyle

E261: ignores tab/space mix

Open
#582 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

printf 'foo = "bar" \t# comment\n' | pep8 -

I expected the following output but got nothing:

stdin:1:12: E261 at least two spaces before inline comment

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

Reproduce the issue through the pep8 - stdin entry point using the command shown, then trace the E261 check in pycodestyle's single Python implementation. Done means the mixed tab/space input reports stdin:1:12: E261 at least two spaces before inline comment.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.