Update ruff defaults

- Minimum version py310, to prevent "Py 3.9 does not have foo" errors
- Drop ANN101 because it's deprecated anyway
This commit is contained in:
Trysdyn Black 2025-04-25 10:02:54 -07:00
parent b1bb8c49d3
commit fdaa60f504

View file

@ -1,4 +1,5 @@
[tool.ruff]
target-version = "py310"
line-length = 120
indent-width = 4
@ -41,7 +42,6 @@ lint.select = [
]
lint.ignore = [
"ANN101", # No type hint for "self" - not necessary and makes noisy code
"D203", # Blank line required before class docstring - conflicts with ruff's own formatter
"D211", # No line before class, incompatible with D203 - one line before class
"D212", # Summary on first line; incompatible with D213 - summary on second line