Skip to content

Commit

Permalink
Static typing: configuring Mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
esiebert committed Oct 12, 2024
1 parent b7d318f commit 3ce0928
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,8 @@ run: build rm-container
docker run --env-file .env --name fcs -p 8081:8081 --add-host=host.docker.internal:host-gateway fcs

fmt:
isort .
black .
poetry run isort .
poetry run black .

lint:
poetry run mypy fake_charging_station
12 changes: 12 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,15 @@ py_version = 311

[tool.pytest.ini_options]
asyncio_mode = "auto"

[tool.mypy]
disallow_untyped_calls = true
disallow_any_unimported = true
no_implicit_optional = true
check_untyped_defs = true
warn_return_any = true
warn_unused_ignores = true
show_error_codes = true
disable_error_code = [
"import-untyped"
]

0 comments on commit 3ce0928

Please sign in to comment.