2023-05-14 14:47:14 -04:00
|
|
|
[tool.ruff]
|
|
|
|
fix = true
|
|
|
|
unfixable = [
|
|
|
|
"ERA", # do not autoremove commented out code
|
|
|
|
]
|
|
|
|
target-version = "py37"
|
|
|
|
line-length = 88
|
|
|
|
extend-select = [
|
|
|
|
"B", # flake8-bugbear
|
|
|
|
"C4", # flake8-comprehensions
|
|
|
|
"ERA", # flake8-eradicate/eradicate
|
|
|
|
"I", # isort
|
|
|
|
"N", # pep8-naming
|
|
|
|
"PIE", # flake8-pie
|
|
|
|
"PGH", # pygrep
|
|
|
|
"RUF", # ruff checks
|
|
|
|
"SIM", # flake8-simplify
|
|
|
|
"TCH", # flake8-type-checking
|
|
|
|
"TID", # flake8-tidy-imports
|
|
|
|
"UP", # pyupgrade
|
|
|
|
]
|
2021-11-12 20:28:30 -05:00
|
|
|
|
2023-05-14 14:47:14 -04:00
|
|
|
[tool.ruff.flake8-tidy-imports]
|
|
|
|
ban-relative-imports = "all"
|
2021-11-12 20:28:30 -05:00
|
|
|
|
2023-05-14 14:47:14 -04:00
|
|
|
[tool.ruff.isort]
|
|
|
|
force-single-line = true
|
|
|
|
lines-between-types = 1
|
|
|
|
lines-after-imports = 2
|