* Fix README for python version * Add discord-friendly unidecode function for channel names (avoiding special characted) * Check if "items" is present before accessing in channel id request response
62 lines
1.3 KiB
TOML
62 lines
1.3 KiB
TOML
[project]
|
|
name = "bot-discord"
|
|
version = "0.1.0"
|
|
requires-python = ">=3.10"
|
|
|
|
[project.optional-dependencies]
|
|
test = ["pytest"]
|
|
|
|
[tool.ruff]
|
|
cache-dir = "/tmp/ruff"
|
|
exclude = [
|
|
".git",
|
|
".ruff_cache",
|
|
".venv"
|
|
]
|
|
line-length = 120
|
|
indent-width = 4
|
|
target-version = "py310"
|
|
|
|
|
|
[tool.isort]
|
|
combine_as_imports = true
|
|
force_sort_within_sections = true
|
|
lexicographical = true
|
|
lines_after_imports = 2
|
|
multi_line_output = 4
|
|
no_sections = false
|
|
order_by_type = true
|
|
|
|
[tool.pytest.ini_options]
|
|
addopts = "-p no:cacheprovider -s -vv"
|
|
testpaths = ["tests"]
|
|
pythonpath = ["."]
|
|
|
|
[tool.ruff.lint]
|
|
preview = true
|
|
select = ["A", "ARG", "B", "C", "E", "F", "FURB", "G", "I","ICN", "ISC", "PERF", "PIE", "PL", "PLE", "PTH",
|
|
"Q", "RET", "RSE", "RUF", "SLF", "SIM", "T20", "TCH", "UP", "W"]
|
|
ignore = ["E275", "FURB140", "I001", "PERF203", "RET502", "RET503", "SIM105"]
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
"tests/*" = ["SLF001", "PLR2004"]
|
|
"breadtube_bot/unidecode_data.py" = ["E501"]
|
|
|
|
[tool.ruff.lint.flake8-quotes]
|
|
inline-quotes = "single"
|
|
|
|
[tool.ruff.lint.pylint]
|
|
max-args=16
|
|
max-branches=34
|
|
max-locals=16
|
|
max-nested-blocks=8
|
|
max-public-methods=16
|
|
max-returns=8
|
|
max-statements=96
|
|
|
|
[tool.ruff.lint.mccabe]
|
|
max-complexity = 34
|
|
|
|
[tool.coverage.run]
|
|
command_line = "-m pytest"
|
|
omit = ["tests/*"]
|