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.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9077d8a158185526856bfe67107ddee825b0df2aee3294df78d2520a6dd03147 |
|
MD5 | f4bfd699887663fa5fd8d28a27317cd2 |
|
BLAKE2b-256 | c0c8fc1277fc8242a8ed3f8d18ef770f0ce07de9db1a9f4ec9fdaec30339b971 |
Close
Hashes for graphene_django_hook-0.4.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7eb9841f5a91d4fd9d63916cd9e6dd74e89256ee6d9852919eace66426bb827d |
|
MD5 | 8a546ae9c60e7c6a6025702ffc2a7386 |
|
BLAKE2b-256 | f828dff940d3cc9c334edd1f4f122d13584208a3a93dadc92d2a81bf9d77c0f4 |