pip install --upgrade pip
pip install --upgrade pre-commit build twine
Install pre-commit hook for the local repo:
pre-commit install
For the first time, run pre-commit checks on the whole codebase:
pre-commit run --all-files
python -m build
python -m twine upload --repository testpypi dist/*