Replace --ignore-*
flags with select
(and optionally ignore
.)
#398
Labels
enhancement
New feature or request
--ignore-*
flags with select
(and optionally ignore
.)
#398
Currently, we use the flags:
With the addition of the new error codes, we might want to change this to
ignore
(and optionally alsoselect
). e.g.This would also imply changing
to something that uses the error codes. Optionally, we could go for something like:
Which implies that
DEP001
should be skipped for all files, andDEP002
should only for the dependencymatplotlib
.Advantages
Disadvantages
ignore_unused = ["tomllib"]
is more intuitive than[tool.deptry.per_check_ignores]; "DEP002" = ["matplotlib"]
Questions
tool.deptry.per_rule_ignores
a good name? See also Determine naming convention for issues/violations/errors/checks #404The text was updated successfully, but these errors were encountered: