Skip to content

Latest commit

 

History

History
60 lines (40 loc) · 1022 Bytes

CONTRIBUTING.md

File metadata and controls

60 lines (40 loc) · 1022 Bytes

Contributing to graphql_query

Step 1.

Clone your fork and cd into the repo directory

git clone git@github.com:<your username>/graphql_query.git
cd graphql_query

Step 2.

Set up a virtualenv for running tests

python3 -m venv venv/
source venv/bin/activate

Step 3.

Install graphql_query, dependencies, test dependencies and doc dependencies

make install

Step 4.

Checkout a new branch and make your changes

git checkout -b my-new-feature-branch
# make your changes...

Step 5.

Fix formatting and imports

make format
# graphql_query uses black to enforce formatting and isort to fix imports
# (https://github.com/ambv/black, https://github.com/timothycrosley/isort)

Step 6.

Run tests and linting

make
# there are a few sub-commands in Makefile like `test`, `testcov` and `lint`
# which you might want to use, but generally just `make` should be all you need

Step 7.

... commit, push, and create your pull request