mirror of
https://github.com/python-poetry/install.python-poetry.org.git
synced 2024-11-27 08:11:01 -05:00
29 lines
639 B
TOML
29 lines
639 B
TOML
[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
|
|
]
|
|
|
|
[tool.ruff.flake8-tidy-imports]
|
|
ban-relative-imports = "all"
|
|
|
|
[tool.ruff.isort]
|
|
force-single-line = true
|
|
lines-between-types = 1
|
|
lines-after-imports = 2
|