Skip to main content

Port of the NPM package of the same name

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.1.tar.gz (3.0 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.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for pyright_to_gitlab_ci-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4ffa4f3a28ed0f8c41d32a391be7624a80d3f841adc3454f525431c2fcaee0df
MD5 def6ef70717cb852ce98df40aaaba8d4
BLAKE2b-256 e71fa173a8ee4d26be502dd8c81d04d2ae22fc1dce5e4087e401d27b538731da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyright_to_gitlab_ci-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f57525be23d8032322cd45a59d712bfba1ad61e69ad57de8351947c996ad9e6d
MD5 64fe49c2cedf1831dd42462fd624caf7
BLAKE2b-256 714d58aa57b938b855da4dd7718bfab321d7908ffba7be6f6c3fa6031a794e71

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