Build reusable bot framework
This commit is contained in:
27
pyproject.toml
Normal file
27
pyproject.toml
Normal file
@@ -0,0 +1,27 @@
|
||||
[tool.pytest.ini_options]
|
||||
addopts = "-ra --strict-markers --cov --cov-report=term-missing"
|
||||
asyncio_mode = "auto"
|
||||
pythonpath = ["."]
|
||||
testpaths = ["tests"]
|
||||
|
||||
[tool.coverage.run]
|
||||
branch = true
|
||||
relative_files = true
|
||||
source = ["ai", "api", "bot", "core", "modules", "scheduler"]
|
||||
omit = [
|
||||
"core/manage.py",
|
||||
"core/migrations/__main__.py",
|
||||
]
|
||||
|
||||
[tool.coverage.report]
|
||||
show_missing = true
|
||||
skip_covered = true
|
||||
|
||||
[tool.ruff]
|
||||
target-version = "py311"
|
||||
line-length = 88
|
||||
extend-exclude = [".venv"]
|
||||
|
||||
[tool.ruff.lint]
|
||||
# Keep linting focused on syntax errors, undefined names, and invalid control flow.
|
||||
select = ["E9", "F63", "F7", "F82"]
|
||||
Reference in New Issue
Block a user