Generate graphql schema.
Project description
graphene-django-precommit-hook
pre-commit hook to generate .graphql
| .json
graphql schema for graphene-django.
As a pre-commit hook
See pre-commit for instructions
Sample basic .pre-commit-config.yaml
- repo: https://github.com/jackton1/graphene-django-precommit-hook
rev: v0.1.0
hooks:
- id: graphene-django-hook
stages: [commit]
Sample complex .pre-commit-config.yaml
- repo: https://github.com/jackton1/graphene-django-precommit-hook
rev: v0.1.0
hooks:
- id: graphene-django-hook
stages: [commit]
args: [
'--managepy-path',
'/path/to/manage.py', # Defaults to: manage.py
'--settings',
'project.settings'. # Defaults to: DJANGO_SETTINGS_MODULE
'--indent',
'4' # See https://docs.graphene-python.org/projects/django/en/latest/introspection/
'--out',
'path/to/schema.graphql',
'--schema',
'module.path.to.schema',
'--verbosity', # OR '-v'
'2', # Set the verbosity level {0,1,2,3}
]
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for graphene_django_hook-0.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 315a1d420518e404a0b261a205c7afccee62933317246ef2945b40abbd21c2a6 |
|
MD5 | 1f96d7a3c73713e2d46e895fa3b40384 |
|
BLAKE2b-256 | 1c92ec282f31bac0d8c43294ca41b9af8971f17813e8c2fafaf0568ab25179ea |
Close
Hashes for graphene_django_hook-0.3.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aaac55244ff284c5abaffa50426d5965fee32a7edbc56aadd7fa1092761af67d |
|
MD5 | 297930fb5672e57afb6d4ed6a15fedcd |
|
BLAKE2b-256 | b9715aacf99b4ad517c7ba91ce7403545a69d46f146e622a46f95da41040e7a0 |