• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

profusion / sgqlc / 155 / 1
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: httpx
DEFAULT BRANCH: master
Ran 17 Dec 2020 07:59PM UTC
Files 11
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

17 Dec 2020 07:54PM UTC coverage: 100.0%. Remained the same
PIPENV_VENV_IN_PROJECT=1 PIPENV_IGNORE_VIRTUALENVS=1

push

travis-ci-com

barbieri
codegen: add operations generator

This is another helper that given a GraphQL domain-specific-language
(DSL), it will generate the Python code using SGQL types.

Since fragments are not supported by sgqlc.operation, it will inline
the fields. Eventually the named fragment support will be added.

Variables are respected, that allows parameters to be given to
operations.

A simplified validation is done, it's not fully complete (one can use
existing tools to validate `.gql` files against a schema), but should
serve most people, including:
 - input type mismatch
 - invalid selections/fields
 - invalid types
 - invalid arguments
 - missing required arguments
 - invalid enum values

In the future I plan to add support to generate typings, so it will
help mypy users.

1464 of 1464 relevant lines covered (100.0%)

1.0 hits per line

Source Files on job 155.1 (PIPENV_VENV_IN_PROJECT=1 PIPENV_IGNORE_VIRTUALENVS=1)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 185
  • Travis Job 155.1
  • ded8029f on github
  • Prev Job for PIPENV_VENV_IN_PROJECT=1 PIPENV_IGNORE_VIRTUALENVS=1 on operations-codegen (#153.1)
  • Next Job for PIPENV_VENV_IN_PROJECT=1 PIPENV_IGNORE_VIRTUALENVS=1 on operations-codegen (#157.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc