Skip to main content

TravisCI PyPi

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
  }
}
""")

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flake8-graphql-0.2.5.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file flake8-graphql-0.2.5.tar.gz.

File metadata

File hashes

Hashes for flake8-graphql-0.2.5.tar.gz
Algorithm Hash digest
SHA256 cf6ec34469e2dd596cf271aae713de88ea43b88f5ab4defaabdfde7fcaf18af4
MD5 1f2a60007e01682db49d956da0866431
BLAKE2b-256 76bae995fadadc62e9903b45a55370d6600c28a27a98c0222e462d9d8ec44653

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.5 This release

1 file

0.2.4

1 file

0.2.3

1 file

0.2.2

1 file

0.2.1

1 file

0.2.0

1 file

0.1.2

1 file

0.1.1

2 files

0.1.0

1 file

0.0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page