We use black as the code formatter, the best way to use it is to install the pre-commit hook, it will automatically format the code before each commit
Install pre-commit before commit
pip install pre-commit
pre-commit installPre-commit will automatically format the code before each commit, It can also be executed manually on all files
pre-commit run --all-filesComment style follows Google Python Style Guide.
pip install -e .[test]We use pytest to write unit tests, and use pytest-cov to generate coverage reports
pytest -vv --cov-config=.coveragerc --cov=sdgx/ testsRun unit-test before PR, ensure that new features are covered by unit tests
Install docs dependencies
pip install -e .[docs]Build docs
cd docs && make htmlUse start-docs-host.sh to deploy a local http server to view the docs
cd ./dev-tools && ./start-docs-host.shAccess http://localhost:8910 for docs.