Configure development tooling (ruff, mypy, pytest)

This commit is contained in:
2025-02-03 20:00:48 +00:00
parent 8eb2bbc7d5
commit 66ea201f07

View File

@@ -50,3 +50,41 @@ build-backend = "hatchling.build"
[tool.hatch.version]
path = "src/py_dvt_ate/__init__.py"
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E501", # line too long (handled by formatter)
]
[tool.mypy]
python_version = "3.11"
strict = true
warn_return_any = true
warn_unused_ignores = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
[[tool.mypy.overrides]]
module = [
"streamlit.*",
"plotly.*",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
addopts = "-v --tb=short"