Skip to content

Commit

Permalink
Update ruff config
Browse files Browse the repository at this point in the history
  • Loading branch information
avikstroem committed Apr 4, 2024
1 parent 4881a56 commit 9e71cf4
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ extra_checks = true

[tool.ruff]
src = ["src", "test"]

[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # pyflakes
Expand Down Expand Up @@ -115,9 +117,10 @@ ignore = [
"D100", "D102", "D103", "D104", "D105", "D107",
"PTH123",
"TRY003", "TRY301",
"UP032",
]

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"test/**/*.py" = [
"S101", "S105",
"D103",
Expand All @@ -127,14 +130,14 @@ ignore = [
"ARG001",
]

[tool.ruff.pydocstyle]
[tool.ruff.lint.pydocstyle]
convention = "google"

[tool.ruff.flake8-pytest-style]
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false
mark-parentheses = false
parametrize-names-type = "csv"
parametrize-values-type = "list"

[tool.ruff.flake8-tidy-imports]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "parents"

0 comments on commit 9e71cf4

Please sign in to comment.