Skip to content

Commit 3077932

Browse files
authored
Merge pull request #2569 from jku/enable-pycodestyle-in-tests
lint: Enable pycodestyle in tests
2 parents 9dcb0ea + 56b362a commit 3077932

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,13 @@ select = [
9292
ignore = ["D400","D415","D213","D205","D202","D107","D407","D413","D212","D104","D406","D105","D411","D401","D200","D203", "PLR0913", "PLR2004"]
9393

9494
[tool.ruff.lint.per-file-ignores]
95-
"tests/*" = ["D", "E"]
96-
"examples/*/*" = ["D"]
95+
"tests/*" = [
96+
"D", # pydocstyle: no docstrings required for tests
97+
"E501" # line-too-long: embedded test data in "fmt: off" blocks is ok
98+
]
99+
"examples/*/*" = [
100+
"D", # pydocstyle: no docstrings required for examples
101+
]
97102

98103
# mypy section
99104
# Read more here: https://mypy.readthedocs.io/en/stable/config_file.html#using-a-pyproject-toml-file

0 commit comments

Comments
 (0)