Skip to content

Commit

Permalink
Merge pull request #97 from graphql-python/testing-instructions
Browse files Browse the repository at this point in the history
Remove CLA, update CONTRIBUTING guide with testing and linting instructions
  • Loading branch information
necaris authored Jan 13, 2024
2 parents 88faade + b610989 commit 54a159b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
26 changes: 12 additions & 14 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,20 @@ This will install the repo version of
`graphene-pydantic` and then install the development dependencies. Once that
has completed, you can start developing.

## Contributor License Agreement
### Running tests

To run the tests locally, you can simply run `pytest`.

We require all contributors to sign the [Upside CLA](./CONTRIBUTOR_LICENSE_AGREEMENT.md).
In CI, we run tests using [nox](https://nox.thea.codes/en/stable/index.html),
which runs the test multiple times using different package versions. Run
`poetry run nox` to run the entire test suite.

In simple terms, the CLA affirms that the work you're contributing is original,
that you grant Upside permission to use that work (including license to any
patents necessary), and that Upside may relicense your work for our commercial
products if necessary. Note that this description is a summary and the specific
legal terms should be read directly in the CLA.
### Pre-commit, linting

The CLA does not change the terms of the standard open source license used by
our software. You are still free to use our projects within your own projects or
businesses, republish modified source, and more. Please reference the license of
this project to learn more.
We use [pre-commit](https://pre-commit.com/) 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 sign the CLA, open a pull request as usual. If you haven't signed the CLA
yet, we cannot merge any pull request until the CLA is signed. You only need to
sign the CLA once.
To run them manually, run `pre-commit run --all-files`.

To skip them when committing, run `git commit` with the `--no-verify` flag.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ This project depends on third-party code which is subject to the licenses set fo

### Contributing

Please see the [Contributing Guide](./CONTRIBUTING.md). Note that you must sign the [CLA](./CONTRIBUTOR_LICENSE_AGREEMENT.md).
Please see the [Contributing Guide](./CONTRIBUTING.md).

### Caveats

Expand Down

0 comments on commit 54a159b

Please sign in to comment.