You will need:
- Python 3.7 or higher
To get your development environment set up, create and activate a virtual environment, and install poetry:
pipx install poetry
# or with conda
conda install poetry
Then install dependencies with poetry:
poetry install
This will install the repo version of
graphene-pydantic
and then install the development dependencies. Once that
has completed, you can start developing.
To run the tests locally, you can simply run pytest
.
In CI, we run tests using nox,
which runs the test multiple times using different package versions. Run
poetry run nox
to run the entire test suite.
We use pre-commit to manage git pre-commit hooks. This
will fail linting locally so you can see errors before they run in CI. Run pre-commit install
to install the hooks.
To run them manually, run pre-commit run --all-files
.
To skip them when committing, run git commit
with the --no-verify
flag.