Hello,

Sorry for the bother but I had a question about balancing personal and
project uses of flake8: on a project we're trying to progressively
introduce flake8 (so enabling a subset of all checks on a subset of all
files).

We tried adding a config doing via "select" and "ignore" in the existing
setup.cfg, however this turned out to break a lot of people's linting,
as their editor simply ran flake8 in the default configuration and they
used that for their contributions (even though it was not checked
project-wide).

Looking further into this, it looks like recent versions of flake8 have
"extend-ignore" and "extend-select" to avoid breaking things locally,
however there are a few issues I don't know how to fix, or whose
semantics is not clear:

- according to the documentation, CLI values have the highest priority,
  but how does that work with select versus extend-select? Is `--select`
  used as the baseline then `extend-select` from the configuration files
  gets added to that?
- is `--select ''` the proper way to deselect everything?
- is there a way to make exclusions error-specific, or is an other
  workaround necessary to add large sections of the project to
  exclusions for the CI, but not prevent linting for people?

Regards,

Xavier
_______________________________________________
code-quality mailing list -- code-quality@python.org
To unsubscribe send an email to code-quality-le...@python.org
https://mail.python.org/mailman3/lists/code-quality.python.org/
Member address: arch...@mail-archive.com

Reply via email to