Skip to content

Commit

Permalink
build: add some dir/file specific ruff rules
Browse files Browse the repository at this point in the history
  • Loading branch information
akaihola committed Aug 1, 2024
1 parent c4ea5f6 commit 50f2d65
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@ ignore = [
]

[tool.ruff.lint.per-file-ignores]
"action/*.py" = [
"T201", # `print` found
]
"action/tests/*.py" = [
"S101", # Use of `assert` detected
]
"src/darker/__main__.py" = [
"T201", # `print` found
]
"src/darker/tests/*.py" = [
"ANN001", # Missing type annotation for function argument
"ANN201", # Missing return type annotation for public function
Expand Down

0 comments on commit 50f2d65

Please sign in to comment.