Python package for using simple control barrier function.
- poetry 1.3.1
Create virtualenv and install dependencies defined for the project.
poetry install
Build and install locally with pip.
poetry build
python -m pip install cbfpy --find-links=dist
poetry run python examples/example_{cbf name}.py
Generate document from docstring.
poetry run task docs
Browse generated document by opening the html files in docs/build/ from your browser.
- isort
- black
poetry run task fmt
- black
- ruff
- mypy
poetry run task lint
- pytest
- pytest-cov
poetry run task test
The vscode extension coverage-gutters can be used to display the test coverage.
Apply config file for pre-commit.
poetry run pre-commit install
poetry export -f requirements.txt --output requirements.txt --without-hashes