Exclusions listed with extend-exclude
in pyproject.toml
get overwritten by passing --extend-exclude
#557
Labels
bug
Something isn't working
Describe the bug
Exclusions listed with
extend-exclude
inpyproject.toml
get overwritten by passing--extend-exclude
to the command lineTo Reproduce
Steps to reproduce the behavior:
[tool.deptry] extend-exclude: ...
section of a project usingpyproject.toml
deptry
from the command line adding a parameter--extend-exclude ...
with a different list of exclusionsdeptry
will check locations listed as excluded inpyproject.toml
Expected behavior
The parameter name "EXTEND" exclude suggests that additional exclusions passed in the command line would be appended to whatever is listed in the project file, not overwrite them. This results in very anti-intuitive behaviour.
If this is intended (as for other parameters it makes sense to overwrite the project setting by command line settings if explicitly requested), then at least a warning should be shown in the command line mentioning that the rules set in the project file are being overridden.
System [please complete the following information]:
The text was updated successfully, but these errors were encountered: