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

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)

Source distribution for flake8-graphql 0.2.5
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

Release history Release notifications | RSS feed

This release

0.2.5 This release

1 release file

0.2.4

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.2

1 release file

0.1.1

2 release files

0.1.0

1 release file

0.0.1

1 release 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