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: [
'--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.8.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c0a11bdeb1234b5eca75229e1c1dbedba4dd63cd4887f6ba0c9bee1d333cda5 |
|
MD5 | 6c08ebac2d92f123b410cf10745dcd44 |
|
BLAKE2b-256 | 8c650ca1c13dc1ce0652f32561337da7391dfd97ff5080174f17a2fe7a8e4dda |
Close
Hashes for graphene_django_hook-0.8.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bfb5499fbaac1c26156d015602d566bbddb4837eb3cec01ded64a1959e872f1 |
|
MD5 | 193c6c3bce75e20b601a49aa749f8ef1 |
|
BLAKE2b-256 | 236468e979c98859c3aed2190b2a85f3d120411eb51b273a3785b43ba4587919 |