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

# Conflicts:
#	pyproject.toml
This commit is contained in:
David Paul Graham 2026-03-14 08:08:24 -04:00
parent 2a9851ce1b
commit a0d049cff1
No known key found for this signature in database
GPG key ID: ACDB045B782EF333

View file

@ -35,12 +35,37 @@ dev = [
##################
[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"]
extend-include = ["package_test/**/*.py"]
target-version = "py312"
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