-
Notifications
You must be signed in to change notification settings - Fork 139
Contributing docs and refactor tox config #77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
e845156
chore: contributing docs and tox config
KingDarBoja 7d9d754
Merge branch 'master' into contributing-docs
KingDarBoja d72840b
chore: add pytest-cov and syntax fixes
KingDarBoja 9e8fbdd
chore: sort imports on graphqlview
KingDarBoja 30032f9
chore: comment out tox-conda on tox file
KingDarBoja b798de6
chore: remove readme rst
KingDarBoja 80d91a6
chore: add check manifest to dev dependencies
KingDarBoja a2f9360
chore: remove matrix jobs on travis
KingDarBoja a2da9ae
chore: add pyversions to Travis CI
KingDarBoja fa8af4c
chore: remove py33 and py34 from classifiers
KingDarBoja File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[report] | ||
omit = */tests/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Contributing | ||
|
||
Thanks for helping to make flask-graphql awesome! | ||
|
||
We welcome all kinds of contributions: | ||
|
||
- Bug fixes | ||
- Documentation improvements | ||
- New features | ||
- Refactoring & tidying | ||
|
||
|
||
## Getting started | ||
|
||
If you have a specific contribution in mind, be sure to check the [issues](https://github.com/graphql-python/flask-graphql/issues) and [projects](https://github.com/graphql-python/flask-graphql/projects) in progress - someone could already be working on something similar and you can help out. | ||
|
||
|
||
## Project setup | ||
|
||
After cloning this repo, ensure dependencies are installed by running: | ||
|
||
```sh | ||
make dev-setup | ||
``` | ||
|
||
## Running tests | ||
|
||
After developing, the full test suite can be evaluated by running: | ||
|
||
```sh | ||
make tests | ||
``` | ||
|
||
## Development on Conda | ||
|
||
In order to run `tox` command on conda, you must create a new env (e.g. `flask-grapqhl-dev`) with the following command: | ||
|
||
```sh | ||
conda create -n flask-grapqhl-dev python=3.8 | ||
``` | ||
|
||
Then activate the environment with `conda activate flask-grapqhl-dev` and install [tox-conda](https://github.com/tox-dev/tox-conda): | ||
|
||
```sh | ||
conda install -c conda-forge tox-conda | ||
``` | ||
|
||
Uncomment the `requires = tox-conda` line on `tox.ini` file and that's it! Run `tox` and you will see all the environments being created and all passing tests. :rocket: | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,14 @@ | ||
include LICENSE | ||
include README.md | ||
include CONTRIBUTING.md | ||
|
||
recursive-include flask_graphql/static * | ||
recursive-include flask_graphql/templates * | ||
recursive-include tests *.py | ||
|
||
include Makefile | ||
|
||
include .coveragerc | ||
include tox.ini | ||
|
||
global-exclude *.py[co] __pycache__ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
dev-setup: | ||
python pip install -e ".[test]" | ||
|
||
tests: | ||
py.test tests --cov=flask_graphql -vv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.