Open e11bits opened 8 months ago
With flake8 version 7.0.0 the settings from a setup.cfg are not properly converted to arguments for flake8:
setup.cfg
[flake8] exclude = build,.git,.tox,./tests/.env extend-ignore = E203 max-line-length = 88 per-file-ignores = django/core/cache/backends/filebased.py:W601 django/core/cache/backends/base.py:W601 django/core/cache/backends/redis.py:W601 tests/cache/tests.py:W601
Will result in an error:
flake8: error: unrecognized arguments: --extendIgnore=E203 --perFileIgnores=django/core/cache/backends/filebased.py:W601,django/core/cache/backends/base.py:W601,django/core/cache/backends/redis.py:W601,tests/cache/tests.py:W601
The call should be instead:
flake8 --extend-ignore=E203 --per-file-ignores=django/core/cache/backends/filebased.py:W601,django/core/cache/backends/base.py:W601,django/core/cache/backends/redis.py:W601,tests/cache/tests.py:W601 some.py
can confirm that this also happens for setting extend-ignore in the .flake8 file
extend-ignore
.flake8
With flake8 version 7.0.0 the settings from a
setup.cfg
are not properly converted to arguments for flake8:Will result in an error:
The call should be instead: