Tests for my code must have 100% coverage, that is, make sure every line of the code is run at least once. This can be achieved by using coverage.py with tox.
The article also talks about preparing and uploading the package to PyPi using Poetry, pretty formatting using black, creating release tags on Github, CI/CD using Github Actions, and adding badges to README.md.
https://mathspp.com/blog/how-to-create-a-python-package-in-2022#a-simple-tox-configuration