Plugin for linting graphql query strings within your code.
Mark your query strings with any function or class named gql to perform linting:
def gql(query):
return query
myquery = gql("""
{
empireHero: hero(episode: EMPIRE) {
name
}
jediHero: hero(episode: JEDI) {
name
}
""")
You can also customise the identifier to any value with the --gql-identifier option. This can be set with command line arguments or within setup.cfg.
$ flake8 --gql-identifier=GQL
class GQL(str):
pass
myquery = GQL("""
{
project(name: "GraphQL") {
tagline
}
}
""")
Metadata
Release files for flake8-graphql 0.2.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| flake8-graphql-0.2.5.tar.gz | 2.5 kB | Details |
Release files / flake8-graphql-0.2.5.tar.gz
| Download URL | flake8-graphql-0.2.5.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cf6ec34469e2dd596cf271aae713de88ea43b88f5ab4defaabdfde7fcaf18af4
|
|
BLAKE2b-256 checksum How to use checksums |
76bae995fadadc62e9903b45a55370d6600c28a27a98c0222e462d9d8ec44653
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |