Skip to content

Commit

Permalink
Merge pull request #2569 from jku/enable-pycodestyle-in-tests
Browse files Browse the repository at this point in the history
lint: Enable pycodestyle in tests
  • Loading branch information
jku committed Feb 22, 2024
2 parents 9dcb0ea + 56b362a commit 3077932
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,13 @@ select = [
ignore = ["D400","D415","D213","D205","D202","D107","D407","D413","D212","D104","D406","D105","D411","D401","D200","D203", "PLR0913", "PLR2004"]

[tool.ruff.lint.per-file-ignores]
"tests/*" = ["D", "E"]
"examples/*/*" = ["D"]
"tests/*" = [
"D", # pydocstyle: no docstrings required for tests
"E501" # line-too-long: embedded test data in "fmt: off" blocks is ok
]
"examples/*/*" = [
"D", # pydocstyle: no docstrings required for examples
]

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

0 comments on commit 3077932

Please sign in to comment.