curved-microphone-39455
12/12/2022, 8:37 PMflake8
plugins, I have define a .ini
file and define in my pants.toml
my file
[...]
[flake8]
config = "thirdparty/flake8/flake8.ini"
version = "flake8==6.0.0"
lockfile = "thirdparty/flake8/.lock"
My main problem is the exclude instruction of the .ini
file
[flake8]
max-line-length = 120
max-complexity = 15
extend-ignore =
RST902
exclude =
migrations,
docs,
dist,
build,
.eggs,
docker,
venv,
sphinx,
.pytest_cache,
.tox
versioneer.py
the exclude is working since a lots of those folder are parsed correctly and does not appear in the ./pants lint ::
command, but the migrations,
won't work, I have tried so many patterns to make is works, *migrations,*migrations*,migrations/
also tried to give the absolute path (just to test) and I still having all my migrations folder of all my projects discovered by flake8 (the exclude list is working if running from within the project with the same config file.
I have cleaned the cache between every tests 😞 with no luck, any guess on this ? pleasehundreds-father-404
12/12/2022, 8:40 PMskip_flake8
to the folder(s) like this https://www.pantsbuild.org/docs/python-linters-and-formatters#running-only-certain-formatters-or-linterscurved-microphone-39455
12/12/2022, 8:45 PMcurved-microphone-39455
12/12/2022, 8:45 PMhundreds-father-404
12/12/2022, 8:47 PMI really need to change my mentality and stop trying to "adapt" what we have and let pants do his jobwell, it's tricky because we do try really hard to keep a close integration with the tools so that if it worked before, it still works. That does not always happen, of course I'm glad it's working now
curved-microphone-39455
12/12/2022, 8:48 PMcurved-microphone-39455
12/12/2022, 8:49 PM