mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 14:02:15 +00:00
58 lines
1.3 KiB
TOML
58 lines
1.3 KiB
TOML
target-version = "py313"
|
|
unsafe-fixes = true
|
|
line-length = 100
|
|
extend-exclude = ["alembic", "*.ipynb", "temp"]
|
|
|
|
|
|
lint.select = [
|
|
'A', # flake8-builtins
|
|
"C4", # flake8-comprehensions
|
|
'DTZ', # flake8-datetimez
|
|
"E", # pycodestyle errors
|
|
'EXE', # flake8-executable
|
|
"F", # Pyflakes
|
|
'FA', # flake8-future-annotations
|
|
"I", # isort
|
|
'PT', # flake8-pytest-style
|
|
'RSE', # flake8-raise
|
|
'SIM', # flake8-simplify
|
|
'UP', # pyupgrade
|
|
"W", # pycodestyle warnings
|
|
]
|
|
|
|
lint.ignore = [
|
|
'A003',
|
|
# 'C408', # keep dict() as-is
|
|
'DTZ007', # naive datetime.strptime() without %z
|
|
'E501',
|
|
'E711',
|
|
'E712',
|
|
'E721', # type() comparison
|
|
# 'E722', # bare except
|
|
'E741',
|
|
'EXE003', # shebang should contain "python"
|
|
'F401', # unused imports
|
|
'F841',
|
|
# 'PT018', # assertion should be broken into multiple parts
|
|
'SIM102',
|
|
'SIM103', # return the condition directly
|
|
'SIM105',
|
|
'SIM108',
|
|
# 'SIM110', # use any() instead of a for loop
|
|
# 'SIM114',
|
|
'SIM115',
|
|
# 'UP007', # use X | Y instead of Union[X, Y]
|
|
# 'UP032', # use an f-string instead of format()
|
|
# 'UP046', # prefer type parameters over Generic subclasses
|
|
]
|
|
|
|
[format]
|
|
quote-style = "single"
|
|
|
|
[lint.isort]
|
|
known-first-party = ["lib", "api", "deploy", "ssh_lib"]
|
|
lines-after-imports = 2
|
|
|
|
[lint.flake8-comprehensions]
|
|
allow-dict-calls-with-keyword-arguments = true
|