`extend-ignore` and `extend-select` options seem to be ignored
Open
Nobody has claimed this yet.
bug
help wanted
- Dominant language
- Python
- Stars
- 1.1k
- Forks
- 123
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 5
Description
If I use --extend-ignore or --extend-select options, B950 is not taken into account.
OK:
▹ flake8 --select=E,B950 longline.py
longline.py:1:80: E501 line too long (109 > 79 characters)
longline.py:1:110: B950 line too long (109 > 79 characters)
▹ flake8 --select=E,B950 --ignore=E501 longline.py
longline.py:1:110: B950 line too long (109 > 79 characters)
Not OK:
▹ flake8 --extend-select=E,B950 longline.py
longline.py:1:80: E501 line too long (109 > 79 characters)
▹ flake8 --extend-select=E,B950 --ignore=E501 longline.py
▸ flake8 --select=E,B950 --extend-ignore=E501 longline.py
Versions:
▸ flake8 --version
4.0.1 (flake8-bugbear: 22.1.11, mccabe: 0.6.1, pycodestyle: 2.8.0,
pyflakes: 2.4.0) CPython 3.10.1 on Linux
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported flake8 commands with the listed flake8-bugbear and dependency versions, comparing --select/--ignore with --extend-select/--extend-ignore. Trace how these options reach the B950 check; the issue is done when the extend variants consistently include or suppress B950 as shown by the expected command output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100