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 to lint the code with the default settings of the linter.
- The formatter uses Google's
yapf. - Overrides options specified in the
pyproject.tomlfile to format the code with the default settings of theyapfformatter. - 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.