Request to re-evaluate options for #1273

Open
#2,062 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
cli, tooling

Research direction

Start by reviewing issue #1273 and the current CLI behavior described here. Compare the proposed flag names and determine how one invocation should select special rules while disabling noqa only for them; done means the behavior is agreed and no longer requires two flake8 runs.

Written by the indexing model from the issue text.

Description

describe the request

Hi - thanks for the project!

In some projects I work in, we have a bunch of flake8 rules, but a few "extra special please dont turn off" rules which we run with --disable-noqa. Currently, this process requires running flake8 twice, once flake8 then again flake8 --disable-noqa --select MYRULE1.

I found this old issue which I think looked to solve this #1273. I wonder if y'all see value in revisiting this as a seperate CLI flag --disable-noqa-select or --select-disable-noqa (or whatever!) to prevent the need to do this dual-running.

The initial author did mention

I'd be happy to convert this to a separate option if the risk is unacceptable, but this felt cleaner and more user-friendly to me.

but I dont think that was ever explored.

Happy to work on this issue if there is appetite!

Dominant language
Python
Stars
3.8k
Forks
452
Avg merge
14h 52m
Merged PRs (30d)
3

Getting set up

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.

More from PyCQA/flake8

All issues in PyCQA/flake8

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.