chore: some cleanup and checks (#2792)

* chore: clean up config a bit

* chore: add an extra check

* Apply suggestions from code review

Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com>
This commit is contained in:
Henry Schreiner
2026-03-24 23:51:49 -04:00
committed by GitHub
parent 5d52226105
commit 6df84da3e7
10 changed files with 35 additions and 34 deletions
+3 -5
View File
@@ -128,10 +128,8 @@ files = [
"noxfile.py",
]
warn_unused_configs = true
strict = true
disallow_untyped_defs = false
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
warn_unreachable = false
@@ -190,6 +188,7 @@ messages_control.disable = [
]
[tool.ruff]
show-fixes = true
line-length = 100
[tool.ruff.lint]
@@ -228,12 +227,11 @@ extend-select = [
"TC", # flake8-type-checking
]
ignore = [
"PLR", # Design related pylint codes
"PLR09", # Design related pylint codes
"PLR2004", # Magic value in comparison
"RET504", "RET505", "RET508", # else after control flow
"PT007", # Lists of tuples in Pytest
"PYI025", # Set as AbstractSet
"ISC001", # Conflicts with formatter
"EXE003", # Ruff doesn't like uv?
"PTH123", # open -> Path.open
]
flake8-unused-arguments.ignore-variadic-names = true