-
Notifications
You must be signed in to change notification settings - Fork 687
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
linters do not ignore target/
directory after make dev
#6852
Labels
Milestone
Comments
Which linters are failing for you?
|
Via both Docker and user@sd-dev:~/securedrop$ make dev
[...]
^C
(.venv) user@sd-dev:~/securedrop$ source .venv/bin/activate
(.venv) user@sd-dev:~/securedrop$ make lint
[...]
would reformat target/cargo-dev/registry/src/index.crates.io-6f17d22bba15001f/unicode-normalization-0.1.22/scripts/unicode.py
Oh no! 💥 💔 💥
3 files would be reformatted, 220 files would be left unchanged.
make: *** [Makefile:72: check-black] Error 1 |
Ohh, black had already reformatted it so it didn't show up for me. Once I |
Both black and isort have flags to automatically use rules defined in |
legoktm
added a commit
that referenced
this issue
Jun 22, 2023
For black, setting `exclude` unintentionally overrode black's default of ignoring files listed in .gitignore. isort requires setting an explicit `skip_gitignore` option. Notably this will automatically have both tools ignore target/, which in some cases does contain Python code. Fixes #6852.
4 tasks
legoktm
added a commit
that referenced
this issue
Jun 23, 2023
For black, setting `exclude` unintentionally overrode black's default of ignoring files listed in .gitignore. isort requires setting an explicit `skip_gitignore` option. Notably this will automatically have both tools ignore target/, which in some cases does contain Python code. Fixes #6852.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Description
After #6828,
make dev
now yields atarget/
folder, which fails several linters undermake lint
. Like Bandit in #6843, they should ignoretarget/
.Steps to Reproduce
make dev
make lint
Expected Behavior
Linters pass.
Actual Behavior
Linters fail on generated code in the
target/
tree.The text was updated successfully, but these errors were encountered: