The environment is based on MacOS and Linux.
The Makefile
has the following functionalities.
- To use the
.vscode
settings, install thepylint
extension. - Overrides options specified in the
pyproject.toml
file to lint the code with the default settings of the linter.
- The formatter uses Google's
yapf
. - Overrides options specified in the
pyproject.toml
file to format the code with the default settings of theyapf
formatter. - To use the
.vscode
settings, install theyapf
extension.
- Tests use
unittest
. - Supports both
test_*.py
and*_test.py
patterns. - The test files must be connected to
__init__.py
up to the location where the test files exist.
- Write the
~/.pypirc
file 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
.