flake8-graphql-0.2.5
توضیحات
A flake8 plugin to lint your graphql queries
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | flake8-graphql-0.2.5 |
| نام | flake8-graphql |
| نسخه کتابخانه | 0.2.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Michael Aquilina |
| ایمیل نویسنده | michaelaquilina@gmail.com |
| آدرس صفحه اصلی | https://github.com/michaelaquilina/flake8-graphql |
| آدرس اینترنتی | https://pypi.org/project/flake8-graphql/ |
| مجوز | AGPLv3 |
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:
.. code:: python
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``.
.. code:: shell
$ flake8 --gql-identifier=GQL
.. code:: python
class GQL(str):
pass
myquery = GQL("""
{
project(name: "GraphQL") {
tagline
}
}
""")
.. |TravisCI| image:: https://travis-ci.org/MichaelAquilina/flake8-graphql.svg?branch=master
:target: https://travis-ci.org/MicahelAquilina/flake8-graphql
.. |PyPi| image:: https://badge.fury.io/py/flake8-graphql.svg
:target: https://badge.fury.io/py/flake8-graphql
نحوه نصب
نصب پکیج whl flake8-graphql-0.2.5:
pip install flake8-graphql-0.2.5.whl
نصب پکیج tar.gz flake8-graphql-0.2.5:
pip install flake8-graphql-0.2.5.tar.gz