mirror of
https://github.com/jazzband/django-fernet-encrypted-fields.git
synced 2026-03-16 22:40:27 +00:00
move ruff lint configs to separate section and reduce the target python version to the earliest supported python version
This commit is contained in:
parent
3b906d62c8
commit
73b79b9e0b
1 changed files with 31 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue