Install tox and run:
tox
- Test with tox.
- Update
CHANGELOG.md
. - Bump version in
setup.cfg
. - Upload to pypi:
python -m build twine check dist/* twine upload dist/* -r testpypi # test before upload twine upload dist/*
- Create a new release on github.
Mypy may introduce breaking changes in minor versions (see this blogpost). We don't want to risk false positives when stating the plugin works with mypy versions that haven't been tested and may have introduced breaking changes. That's why for every minor mypy release, this plugin should be updated as well. This can be a very repetitive process, so it has been automated.
When a new mypy version is released, run the following script:
./tools/prepare-pr-after-mypy-bump.sh NEW_MYPY_VERSIONS
It will make necessary changes to code and commit them. Review the commit made by the plugin, run tests, and if it looks good, push.