Skip to main content

Flake8 GraphQL

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 Provenance Actions
flake8-graphql-0.2.5.tar.gz 2.5 kB Without provenance Details for flake8-graphql-0.2.5.tar.gz

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

Security for flake8-graphql 0.2.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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