move ruff lint configs to separate section and reduce the target python version to the earliest supported python version

This commit is contained in:
David Paul Graham 2026-03-14 08:08:24 -04:00
parent 3b906d62c8
commit 73b79b9e0b
No known key found for this signature in database
GPG key ID: ACDB045B782EF333

View file

@ -3,12 +3,37 @@
##################
[tool.ruff]
fix = true
lint.fixable = ["ALL"]
lint.ignore = ["A003", "COM812", "D", "DJ008", "ERA001", "ISC001", "PLC2401", "PLC2403", "PT011", "RUF001", "S101", "S105", "S608", "SIM103", "TC001", "TC002", "TC003", "UP040"]
lint.select = ["ALL"]
lint.unfixable = ["ERA001", "F401"]
include = ["encrypted_fields/*.py", "package_test/*.py"]
target-version = "py312"
extend-include = ["package_test/**/*.py"]
target-version = "py310"
[tool.ruff.lint]
fixable = ["ALL"]
extend-ignore = [
"RUF012",
"A003",
"COM812",
"D",
"DJ008",
"ERA001",
"ISC001",
"PLC2401",
"PLC2403",
"PT011",
"RUF001",
"S101",
"S105",
"S608",
"SIM103",
"TC001",
"TC002",
"TC003",
"UP040"
]
select = ["ALL"]
unfixable = [
"ERA001",
"F401"
]
##################
# mypy