The environment is based on MacOS and Linux.
The Makefile
has the following functions.
- To use the
.vscode
settings, install thepylint
extension. - It overrides the options specified in the
pyproject.toml
file in the default settings of the linter and lints the code.
- The formatter uses Google's
yapf
. - It overrides the options specified in the
pyproject.toml
file in the default settings of theyapf
formatter and formats the code. - To use the
.vscode
settings, install theyapf
extension.
- It uses
unittest
for testing. - It supports both
test_*.py
and*_test.py
patterns. - The test file must be connected to
__init__.py
up to the location where the test file exists.
- Write the
~/.pypirc
file as follows.[pypi] username = __token__ password = pypi-something # Obtain and write your personal API token.
- When this command is executed, it pushes the package to the PyPI public registry using
flit
. - The previously specified name
myproject
(alias) will be uploaded, allowing anyone worldwide to install and use the package withpython3 -m pip install myproject
.