Skip to content

Collection of experimental plugins for MyPy.

License

Notifications You must be signed in to change notification settings

Bendabir/mypypp

Repository files navigation

MyPy++

GitHub Tag PyPI - Python Version PyPI - Implementation PyPI - License Libraries.io dependency status for latest release GitHub deployments

Collection of experimental plugins for MyPy.

Installation

First, install the plugins with your favorie package manager (pip, poetry, etc.).

pip install mypypp

Usage

In your MyPy configuration file, declare the plugins you want to use. For example, within a pyproject.toml configuration file :

[tool.mypy]
plugins = ["mypypp.deprecated"]

Development

The whole project relies on Poetry for setup. It has been developed with Python 3.8 for backward compatibility.

Environment

poetry env use python3.8
poetry lock
poetry install --with dev
poetry run pre-commit install

Quality

poetry run black . # Format code
poetry run ruff check --fix --force-exclude . # Lint code
poetry run mypy --ignore-missing-imports --scripts-are-modules . # Type check code
poetry run python -m pytest --cov=src/mypypp tests # Run all tests

Build

poetry build -f wheel