feat: Add mypy to pre-commit.

This commit is contained in:
Elisiário Couto
2025-09-03 21:40:15 +01:00
committed by Elisiário Couto
parent de3da84dff
commit ec8ef8346a
34 changed files with 226 additions and 242 deletions

View File

@@ -49,9 +49,12 @@ dev = [
"pre-commit>=3.6.0",
"pytest>=8.0.0",
"pytest-asyncio>=0.23.0",
"pytest-mock>=3.12.0",
"pytest-mock>=3.12.0",
"respx>=0.21.0",
"requests-mock>=1.12.0",
"mypy>=1.17.1",
"types-tabulate>=0.9.0.20241207",
"types-requests>=2.32.4.20250809",
]
[tool.hatch.build.targets.sdist]
@@ -71,20 +74,19 @@ lint.extend-select = ["B", "C4", "PIE", "T20", "SIM", "TCH"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = "test_*.py"
python_classes = "Test*"
python_classes = "Test*"
python_functions = "test_*"
addopts = [
"-v",
"--tb=short",
"--strict-markers",
"--disable-warnings"
]
addopts = ["-v", "--tb=short", "--strict-markers", "--disable-warnings"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
markers = [
"unit: Unit tests",
"integration: Integration tests",
"slow: Slow running tests",
"slow: Slow running tests",
"api: API endpoint tests",
"cli: CLI command tests"
"cli: CLI command tests",
]
[[tool.mypy.overrides]]
module = ["apscheduler.*"]
ignore_missing_imports = true