Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Current hook definition stops passing file names as detected by
pre-commit
, and completely relies on the specifications inpyproject.toml
.Even though it's a good practice and quite common in python packages, I'd argue that end users (python developers using these packages) seldom configure with
pyproject.toml
. Their objective is just to run a tool to clean up the codebase as quickly as possible.The changes in fork tries to resolve this by passing files from
pre-commit
by default (which is also the default for other standard linters -pylint
,flake8
, etc.).If someone does configure vulture using
pyproject.toml
, they can still choose to use the current settings by defining paths inpyproject.toml
and settingpass_filenames
asfalse
.Related Issue
resolves #280
Checklist:
tox -e fix-style
to format my code and checked the result withtox -e style
.