Run these command line in terminal at the root directory
pip install poetrypoetry config virtualenvs.in-project truepoetry install --with devpoetry run pre-commit installpoetry run pre-commit autoupdate
To make both task itself and its test workable, I put the following code to every file's head to avoid ImportError
import os
import sys
sys.path.append(os.path.abspath("."))- Mac OS user
- run
chmod +x ./linter_check.shat the root directory to solvepermission deniederror - run
./linter_check.shat root directory, it will execute bothmypyandpylint
- run
- Windows user
- run
./linter_check.ps1
- run
- Mac OS user
- run
chmod +x ./tests.shat the root directory to solvepermission deniederror - run
./tests.shat root directory to run all the unit tests
- run
- Windows user
- run
./tests.ps1
- run