Skip to content

Commit

Permalink
Add wildcard expression to exclude tests option
Browse files Browse the repository at this point in the history
Since pre-commit hook expands whole directory and provides file by file.
Ignoring a single directory is no longer sufficient. The exclude
expression should be applicable to test file paths as well.
  • Loading branch information
albertas committed Jul 10, 2024
1 parent 3796c5e commit fb32010
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,7 @@ ignore_names = [
ignore_names_in_files = [
"deadcode/utils/base_test_case.py"
]

exclude = ["tests"]
exclude = ["tests*"]

[tool.black]
max_line_length = 120
Expand Down

0 comments on commit fb32010

Please sign in to comment.