chore: add mypy
This commit is contained in:
parent
65a56f2658
commit
cd5783b9f0
8 changed files with 128 additions and 82 deletions
|
|
@ -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"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue