mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-22 22:45:09 +01:00
fb86bb3417
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com> Co-authored-by: Luca Bellanti <luca.bellanti@gmail.com> Co-authored-by: thefunkycat <104379699+thefunkycat@users.noreply.github.com> Co-authored-by: Aditya Yadav <69784758+clot27@users.noreply.github.com> Co-authored-by: Dmitry Kolomatskiy <58207913+lemontree210@users.noreply.github.com>
21 lines
583 B
TOML
21 lines
583 B
TOML
[tool.black]
|
|
line-length = 99
|
|
target-version = ['py38', 'py39', 'py310', 'py311']
|
|
|
|
[tool.isort] # black config
|
|
profile = "black"
|
|
line_length = 99
|
|
|
|
[tool.ruff]
|
|
line-length = 99
|
|
target-version = "py38"
|
|
show-fixes = true
|
|
ignore = ["PLR2004", "PLR0911", "PLR0912", "PLR0913", "PLR0915"]
|
|
select = ["E", "F", "I", "PL", "UP", "RUF", "PTH", "C4", "B", "PIE", "SIM", "RET", "RSE",
|
|
"G", "ISC", "PT", "ASYNC", "TCH", "CPY", "SLOT", "PERF",]
|
|
|
|
[tool.ruff.per-file-ignores]
|
|
"tests/*.py" = ["B018"]
|
|
"**/__init__.py" = ["CPY001"]
|
|
"examples/**.py" = ["CPY001"]
|
|
"tests/**.py" = ["RUF012"]
|