-
Notifications
You must be signed in to change notification settings - Fork 60
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
Delete old .pre-commit-config.yaml files #176
Conversation
Minimum allowed coverage is Generated by 🐒 cobertura-action against 109f9c7 |
@dekkers Could you perhaps also set |
This is fine for me (for now), although I still see benefits to using specific configurations for (several) services:
|
pyproject.toml
Outdated
@@ -20,5 +20,5 @@ max-line-length = 120 | |||
|
|||
[tool.vulture] | |||
min_confidence = 90 | |||
exclude = ["/tests/"] | |||
exclude = ["/tests/", "/.venv/"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm not sure about this change:
.venv
seems to be your local installation-specific folder; as many others use justvenv
for example (I haven't seen many usages of.venv
tbh)- Not sure if this is even needed, because pre-commit only run on staged files (and
venv
folders are definitely igorned) - If we really must include this in the configuration then I would opt for the option
"*venv*"
instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was actually an issue I was experiencing when running linters, and vulture was taking forever parsing my .venv's
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That depends entirely on how you run it.
I've just tested this with pre-commit without the exclude option and it worked fine. Also doesn't seem to be an issue for the CI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed offline: vulture does not deal elegantly with the files it receives from pre-commit on all platforms for some reason. For the time being, let's add "*venv*"
as a "temporary" solution.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The vulture hook uses pass_filenames: false
so doesn't get the list of files from pre-commit. The other hooks don't use that option so don't have this problem. "*venv*"
might accidentally match too much, I've added both "/venv/"
and "/.venv/"
now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah good catch. I'm fine with this. Although I would prefer to have pass_filenames
enabled and add the venv patterns to the root exclude. This would make the rest of the config files a bit cleaner since we don't have to repeatedly add these patterns.
…configs # Conflicts: # pyproject.toml
…vws/nl-kat-coordination into remove-old-precommit-configs
No description provided.