Files
openfreemap/.ruff.toml
Zsolt Ero 48da869c42 lint
2025-04-19 15:48:44 +02:00

50 lines
1.0 KiB
TOML

target-version = "py310"
line-length = 100
extend-exclude = ["temp"]
lint.select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
'UP', # pyupgrade
'A', # flake8-builtins
"C4", # flake8-comprehensions
'EXE', # flake8-executable
'FA', # flake8-future-annotations
'PT', # flake8-pytest-style
'RSE', # flake8-raise
'SIM', # flake8-simplify
'DTZ', # flake8-datetimez, https://beta.ruff.rs/docs/rules/#flake8-datetimez-dtz
]
lint.ignore = [
'A003',
'DTZ007',
'E501',
'E711',
'E712',
# 'E721', # type comparison
'E741',
'F401', # unused imports
'F841',
'SIM102',
#'SIM103', # needless-bool, return the condition {condition} directly
'SIM105',
'SIM108',
'SIM115',
# 'DTZ007', # Naive datetime constructed using `datetime.datetime.strptime()` without %z
]
[format]
quote-style = "single"
[lint.isort]
known-first-party = ["ssh_lib"]
lines-after-imports = 2
[lint.flake8-comprehensions]
allow-dict-calls-with-keyword-arguments = true