Skip to content

Latest commit

 

History

History
executable file
·
45 lines (30 loc) · 848 Bytes

README.md

File metadata and controls

executable file
·
45 lines (30 loc) · 848 Bytes

Python project template

For start project write:

python3 -m venv venv
. venv/bin/activate
pip install -r requiremenets.txt
chmod +x run.sh
pre-commit install

For run project write:

./run.sh

For run tests write:

python3 -m unittest tests/__main__.py

Used linters

black

For reformatting code
More about it: https://github.com/psf/black

pyupgrade

For upgrade python code syntax for newer versions of the language
More about it: https://github.com/asottile/pyupgrade

reorder-python-imports

Tool for automatically reordering python imports
More about it: https://github.com/asottile/reorder_python_imports

autoflake

Removes unused imports and unused variables from Python code
More about it: https://github.com/PyCQA/autoflake