Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 797 Bytes

CONTRIBUTING.md

File metadata and controls

52 lines (35 loc) · 797 Bytes

Contributing

Setup

Start by cloning the repository:

git clone https://github.com/carbonfact/lea

There are submodules in this repository, so you'll need to fetch/update them:

git submodule init
git submodule update

Next, you'll need a Python environment:

pyenv install -v 3.11

You'll also need Poetry:

curl -sSL https://install.python-poetry.org | python3 -
poetry install
poetry shell

Testing

You can run tests once the environment is set up:

pytest

Code quality

Install the code quality routine so that it runs each time you try to push your commits.

pre-commit install --hook-type pre-push

You can also run the code quality routine ad-hoc.

pre-commit run --all-files