Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add lint, mypy config #4

Open
codecakes opened this issue Dec 11, 2022 · 0 comments
Open

add lint, mypy config #4

codecakes opened this issue Dec 11, 2022 · 0 comments
Labels
good first issue Good for newcomers

Comments

@codecakes
Copy link
Contributor

Setup linting and mypy configuration.
Make sure mypy configuration is added in pyproject.toml See this for reference:

# See: https://github.com/python/mypy/issues/5205
# mypy global options:
[tool.mypy]
python_version = "3.9"
plugins = ["pydantic.mypy"]
# See: https://blog.wolt.com/engineering/2021/09/30/professional-grade-mypy-configuration/
disallow_untyped_defs = true
check_untyped_defs = true
disallow_any_unimported = true
ignore_missing_imports = false
no_implicit_optional = true
warn_return_any = true
show_error_codes = true
warn_unused_ignores = true

# See: https://pydantic-docs.helpmanual.io/mypy_plugin/
# mypy per-module options:
[tool.pydantic-mypy]
init_typed = true
@codecakes codecakes converted this from a draft issue Dec 11, 2022
@codecakes codecakes added the good first issue Good for newcomers label Dec 11, 2022
@codecakes codecakes moved this from 🆕 New to 📋 Backlog in RMQ Delivery May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant