Skip to content

Commit

Permalink
Pin mypy to version 1.8.0
Browse files Browse the repository at this point in the history
Ignore uvicorn typing errors for the time being, and improve pyproject.toml
dependencies when running mypy outside the pre-commit venv.
  • Loading branch information
aris-aiven committed Mar 28, 2024
1 parent d6f28c5 commit 64a1bfd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ ignore_missing_imports = True
[mypy-systemd.*]
ignore_missing_imports = True

# uvicorn has types starting version 0.19, but we are using 0.15
[mypy-uvicorn.*]
ignore_missing_imports = True

# TBD: When someone has time, implement these for whole codebase

[mypy-astacus.common.cassandra.*]
Expand Down
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ dependencies = [
[project.optional-dependencies]
dev = [
# makefile convenience"
"pre-commit>=2.20.0",
"pre-commit>=3.7.0",
# pre-commit tasks in Makefile need these"
"anyio==3.5.0",
"pylint==2.15.5",
Expand All @@ -53,10 +53,12 @@ dev = [
"pytest-watch==4.2.0",
"pytest==7.2.2",
# pinning mypy to the same version as pre-commit"
"mypy==1.0.0",
"mypy==1.8.0",
# types for things that don't seem to have them"
"types-PyYAML>=6.0.12.2",
"types-requests>=2.28.11.5",
"types-tabulate>=0.9.0.0",
"types-ujson>=5.9.0.0",
"types-urllib3>=1.26.25.4",
"typing_extensions>=4.4.0",
"freezegun>=1.2",
Expand Down

0 comments on commit 64a1bfd

Please sign in to comment.