Skip to main content

Add your description here

Reason this release was yanked:

doesn't run

Project description

pyright-to-gitlab-ci

This is a port of the NPM package of the same name since Robert Craigie (blessed be thy name) took on themself the hard task of actually giving us access to pyright without having to directly touch any icky NPM setup.

Using as part of the GitLab CI

I prefer to use UV because I find it easier to scale over time and multiple repos, but using pip works perfectly

With UV

On the repo

uv add pyright
uv add pyright-to-gitlab-ci
# git commit && git push

.gitlab-ci.yml

job_name:
  script:
   - uv run pyright <python source> --outputjson > obj/pyright.json
   - uv run pyright-to-gitlab-ci --src obj/pyright.json --output obj/pyright-cc.json --base_path .
  artifacts:
    reports:
      codequality: obj/pyright-cc.json

With pip

.gitlab-ci.yml

job_name:
  before_script:
   - pip install pyright
   - pip install pyright-to-gitlab-ci
  script:
   - pyright <python source> --outputjson > obj/pyright.json
   - pyright-to-gitlab-ci --src obj/pyright.json --output obj/pyright-cc.json --base_path .
  artifacts:
    reports:
      codequality: obj/pyright-cc.json

Project details


Download files

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

Source Distribution

pyright_to_gitlab_ci-0.1.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyright_to_gitlab_ci-0.1.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file pyright_to_gitlab_ci-0.1.0.tar.gz.

File metadata

File hashes

Hashes for pyright_to_gitlab_ci-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ed9bd9906728fefbbe0bec941e6e0e60936bb9d82e9868dfbc3c8cbd57e03bfc
MD5 d00dd7b185b991640e4fb6a6a44e0dd9
BLAKE2b-256 48e260ce8b5507677874a1d947d27022b2db326d095f651b77c5d7b88131bc65

See more details on using hashes here.

File details

Details for the file pyright_to_gitlab_ci-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pyright_to_gitlab_ci-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a8644719ed61f01666e3f9f1fb436d6fd7a37c60503107ac751d81112a3d6930
MD5 57f524dc3290e86c026bd8f85b1c91e8
BLAKE2b-256 de3c6a956f0df676e5b608e8487f3725a898e89583243db45bcdaf413091bb30

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page