Collection of experimental plugins for MyPy.
First, install the plugins with your favorie package manager (pip, poetry, etc.).
pip install mypyppIn your MyPy configuration file, declare the plugins you want to use. For example, within a pyproject.toml configuration file :
[tool.mypy]
plugins = ["mypypp.deprecated"]The whole project relies on Poetry for setup. It has been developed with Python 3.8 for backward compatibility.
poetry env use python3.8
poetry lock
poetry install --with dev
poetry run pre-commit installpoetry run black . # Format code
poetry run ruff check --fix --force-exclude . # Lint code
poetry run mypy --ignore-missing-imports --scripts-are-modules . # Type check codepoetry run python -m pytest --cov=src/mypypp tests # Run all testspoetry build -f wheel