Thanks for helping to make gql awesome!
We welcome all kinds of contributions:
- Bug fixes
- Documentation improvements
- New features
- Refactoring & tidying
If you have a specific contribution in mind, be sure to check the issues and pull requests in progress - someone could already be working on something similar and you can help out.
After cloning this repo, create a virtualenv:
virtualenv gql-dev
Activate the virtualenv and install dependencies by running:
python pip install -e[dev]
If you are using Linux or MacOS, you can make use of Makefile command
make dev-setup
, which is a shortcut for the above python command.
You must create a new env (e.g. gql-dev
) with the following command:
conda create -n gql-dev python=3.8
Then activate the environment with conda activate gql-dev
.
Proceed to install all dependencies by running:
pip install -e.[dev]
And you ready to start development!
After developing, the full test suite can be evaluated by running:
pytest tests --cov=gql -vv
If you are using Linux or MacOS, you can make use of Makefile command
make tests
, which is a shortcut for the above python command.
You can also test on several python environments by using tox.
Install tox:
pip install tox
Run tox
on your virtualenv (do not forget to activate it!)
and that's it!
In order to run tox
command on conda, install
tox-conda:
conda install -c conda-forge tox-conda
This install tox underneath so no need to install it before.
Then uncomment the requires = tox-conda
line on tox.ini
file.
Run tox
and you will see all the environments being created
and all passing tests. 🚀