Skip to content

Commit

Permalink
Merge pull request dandi#24 from candleindark/ruff-config
Browse files Browse the repository at this point in the history
Provide a basic configuration for Ruff
  • Loading branch information
candleindark authored Nov 11, 2024
2 parents 52689d7 + 28a481f commit 6b965cf
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,25 @@ skip = '.git*'
check-hidden = true
# ignore-regex = ''
# ignore-words-list = ''

[tool.ruff]
line-length = 88
indent-width = 4
[tool.ruff.lint]
ignore = [
# Avoid use of `from __future__ import annotations`
# because it causes problem with Typer
"FA100"
]
[tool.ruff.lint.per-file-ignores]
"**/tests/**/*" = [
# === defaults recommended by hatch ===
# https://hatch.pypa.io/latest/config/internal/static-analysis/#per-file-ignored-rules
"PLC1901",
"PLR2004",
"PLR6301",
"S",
"TID252",
# Allow access to protected members in tests
"SLF001",
]

0 comments on commit 6b965cf

Please sign in to comment.