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