chore: add mypy

This commit is contained in:
cătălin 2023-12-09 11:29:28 +01:00
commit cd5783b9f0
Signed by: catalin
GPG key ID: 0178DF42F43E5FD2
8 changed files with 128 additions and 82 deletions

View file

@ -26,6 +26,9 @@ testing = [
]
linting = [
"ruff>=0.1.7",
"mypy>=1.7.1",
"types-aioboto3-lite[s3]>=12.0.0",
"boto3-stubs[s3]>=1.33.10",
]
chalice = [
"chalice>=1.29.0",
@ -39,12 +42,13 @@ sls = [
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pdm.dev-dependencies]
dev = [
"types-aioboto3-lite[s3]>=12.0.0",
"boto3-stubs[s3]>=1.33.10",
]
[tool.ruff]
extend-select = ["W", "C90", "I", "N", "UP", "S", "BLE", "B", "A", "COM", "C4", "DTZ", "T10", "EM", "ISC", "T20", "PT", "RSE", "RET", "SIM", "PTH", "ERA", "PGH", "PL", "TRY", "RUF"]
extend-ignore = ["S101", "ISC002", "ISC002", "COM812"]
extend-ignore = ["S101", "ISC001", "ISC002", "COM812"]
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
[[tool.mypy.overrides]]
module = ["aioboto3"]