Skip to content

Commit

Permalink
update ruff configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
JAlvarezJarreta committed Nov 6, 2024
1 parent 83ccf3e commit 902b1c7
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,29 @@ show-fixes = true
[tool.ruff.format]
docstring-code-format = true

[tool.ruff.lint]
select = [
"ALL",
]
ignore = [
"COM812", # https://docs.astral.sh/ruff/rules/trailing-comma-on-bare-tuple/
"D107", # https://docs.astral.sh/ruff/rules/undocumented-public-init/
"D203", # https://docs.astral.sh/ruff/rules/one-blank-line-before-class/
"D211", # https://docs.astral.sh/ruff/rules/blank-line-before-class/
"D213", # https://docs.astral.sh/ruff/rules/multi-line-summary-second-line/
"G004", # https://docs.astral.sh/ruff/rules/logging-f-string/
"I001", # https://docs.astral.sh/ruff/rules/unsorted-imports/
"ICN001", # https://docs.astral.sh/ruff/rules/unconventional-import-alias/
"ISC001", # https://docs.astral.sh/ruff/rules/single-line-implicit-string-concatenation/
"UP035", # https://docs.astral.sh/ruff/rules/deprecated-import/
]

[tool.ruff.lint.per-file-ignores]
# Ignore `F403` (unable to detect undefined names) in all `__init__.py` files
"__init__.py" = ["F403"]
# Ignore `INP001` (packages missing an __init__.py file) and `S101` (raise error instead of using assert)
# in all pytest files
"src/python/tests/**.py" = ["INP001", "S101"]

[tool.mypy]
mypy_path = "src/python"
Expand Down

0 comments on commit 902b1c7

Please sign in to comment.