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-precommit-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-precommit-hook
stages: [commit]
args: [
'--python-version',
'3.6', # Defaults to: 3.6
'--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.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 689a1d91f5c12f64655a7a56f91274d20df77460df26d5e293af1290acf958c9 |
|
MD5 | 5999bc5ad40538d4b834748038a635bc |
|
BLAKE2b-256 | f906f0ed6dc4692f05e4dcbef7658c7e7c680bd8f7c763f0e0c88ee6e98d194b |
Close
Hashes for graphene_django_hook-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a66bc4c23e8abc6484200e08e7abf786333c1d7b4b6567275e092f2c9b8b6d6d |
|
MD5 | 31b0b66a5607a90ba2311e190ab0bfcd |
|
BLAKE2b-256 | 1fd90c24fc4705e2e4a55c0d5c407c997936318dac640419228452ceb3a57143 |