Skip to content

Commit da8eff0

Browse files
committed
Do not format more test data
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent c112f2a commit da8eff0

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

pyproject.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,25 @@ include = [
6060
"src/**/*.py",
6161
"etc/**/*.py",
6262
"test/**/*.py",
63+
"tests/**/*.py",
6364
"doc/**/*",
65+
"docs/**/*",
6466
"*.py",
6567
"."
6668
]
69+
# ignore test data and testfiles: they should never be linted nor formatted
70+
exclude = [
71+
# main style
72+
"**/tests/data/**/*",
73+
# scancode-toolkit
74+
"**/tests/*/data/**/*",
75+
# dejacode, purldb
76+
"**/tests/testfiles/**/*",
77+
# vulnerablecode, fetchcode
78+
"**/tests/*/test_data/**/*",
79+
"**/tests/test_data/**/*",
80+
]
81+
6782

6883
[tool.ruff.lint]
6984
# Rules: https://docs.astral.sh/ruff/rules/

0 commit comments

Comments
 (0)