question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`extend-ignore` and `extend-select` options seem to be ignored

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
sco1commented, Jun 11, 2022

Can you reproduce with flake8@main? This may be https://github.com/PyCQA/flake8/issues/284 (e.g. https://gist.github.com/sco1/7c544878bde10163258435f9e8ae5b11), which is fixed but not part of a release yet.

0reactions
jack-tutorcommented, Jul 13, 2022

I am also running into this issue - also on latest flake and bugbear.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Full Listing of Options and Their Descriptions - Flake8
Show a description of how to use Flake8 and its options. ... This can be combined with both --ignore and --extend-ignore to achieve...
Read more >
flake8 Documentation - Read the Docs
After parsing the configuration file, we determine the default ignore list. We use the defaults from the OptionManager and update those with the ......
Read more >
Flake8: Ignore specific warning for entire file - Stack Overflow
As of Flake8 3.7.0 you can do this using the --per-file-ignores option. Command line example
Read more >
Mailman 3 - code-quality - python.org
Mypy alternatives by Dan Stromberg 22 May '22 ... pylint ignore-patterns ... asking for option in Pyflakes --> handling Python built-in regex operations...
Read more >
A Dotfile Manager with A Twist Built on Rust - Morioh
Out of the box, Twist will create and manage a Git repository for your dotfiles. The CLI was modeled after the Git CLI....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found