The environment is based on MacOS and Linux.
The Makefile has the following functionalities.
- To use the
.vscodesettings, install thepylintextension. - Overrides options specified in the
pyproject.tomlfile in the linter's default settings to lint the code.
- The formatter uses Google's
yapf. - Overrides options specified in the
pyproject.tomlfile in the default settings of theyapfformatter to format the code. - To use the
.vscodesettings, install theyapfextension.
- Tests use
unittest. - Supports both
test_*.pyand*_test.pypatterns. - The test files must be connected to
__init__.pyup to the location where the test files exist.
- Write the
~/.pypircfile as follows.[pypi] username = __token__ password = pypi-something # Obtain and write your personal API token. - Running this command will push the package to the PyPI public registry using
flit. - The package uploaded under the previously specified name
myproject(alias) will be available for anyone worldwide to install and use withpython3 -m pip install myproject.