2020-10-09 17:22:07 +02:00
|
|
|
[tool.black]
|
|
|
|
line-length = 99
|
2023-06-29 18:17:47 +02:00
|
|
|
target-version = ['py38', 'py39', 'py310', 'py311']
|
2022-05-05 09:27:54 +02:00
|
|
|
|
|
|
|
[tool.isort] # black config
|
|
|
|
profile = "black"
|
|
|
|
line_length = 99
|
2023-01-06 16:19:49 +01:00
|
|
|
|
|
|
|
[tool.ruff]
|
|
|
|
line-length = 99
|
2023-06-29 18:17:47 +02:00
|
|
|
target-version = "py38"
|
2023-03-25 19:18:04 +01:00
|
|
|
show-fixes = true
|
2023-07-06 18:57:51 +02:00
|
|
|
ignore = ["PLR2004", "PLR0911", "PLR0912", "PLR0913", "PLR0915", "PERF203"]
|
2023-03-25 19:18:04 +01:00
|
|
|
select = ["E", "F", "I", "PL", "UP", "RUF", "PTH", "C4", "B", "PIE", "SIM", "RET", "RSE",
|
2023-08-02 11:51:17 +02:00
|
|
|
"G", "ISC", "PT", "ASYNC", "TCH", "CPY", "SLOT", "PERF", "PYI"]
|
2023-04-05 20:52:52 +02:00
|
|
|
|
|
|
|
[tool.ruff.per-file-ignores]
|
|
|
|
"tests/*.py" = ["B018"]
|
2023-06-29 11:38:09 +02:00
|
|
|
"**/__init__.py" = ["CPY001"]
|
|
|
|
"examples/**.py" = ["CPY001"]
|
|
|
|
"tests/**.py" = ["RUF012"]
|