configure ruff, separate hydraJobs from other derivations

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
2024-08-04 11:24:38 -04:00
parent bdc15b2c41
commit c4bfafeaef
4 changed files with 47 additions and 20 deletions

View File

@ -23,6 +23,39 @@ flake-update-diff = "flupdt.main:main"
[tool.poetry.group.dev.dependencies]
ruff = "0.5.5"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 100
indent-width = 4
target-version = "py39"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN101", # (perm) this rule is deprecated
"ANN102", # (perm) this rule is deprecated
"G004", # (perm) this is a performance nit
]
[tool.ruff.lint.per-file-ignores]
"tests/**" = [
"S101", # (perm) pytest needs asserts
]
fixable = ["ALL"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.pycodestyle]
max-line-length = 120
[tool.ruff.lint.pylint]
max-args = 9