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

.gitlab-ci.yml

job_name:
  script:
   - uvx pyright <python source> --outputjson > obj/pyright.json
   - uvx 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:
  script:
   - pipx pyright <python source> --outputjson > obj/pyright.json
   - pipx pyright-to-gitlab-ci --src obj/pyright.json --output obj/pyright-cc.json --base_path .
  artifacts:
    reports:
      codequality: obj/pyright-cc.json

Changelog

v1.1.0

  • Fix name of base_path params to match JS version
  • Fix uv dependencies: pytest-coverage as dev dependency
  • Thansk Jonáš Vacek for this!

v1.0.0

  • Support extended Python>=3.10
  • Fix fingerprinting
  • Multiple parsing issues fix
  • Added unit tests, with tox for all supported python versions
  • pyright passes with no warning

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-1.1.0.tar.gz (8.9 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-1.1.0-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for pyright_to_gitlab_ci-1.1.0.tar.gz
Algorithm Hash digest
SHA256 0b588511f2e21908b3ac628b0212f0efa8f04afe2e529e09df839a49b92134c5
MD5 13609b0a9d1cbcf7944bbdbd84c2ac27
BLAKE2b-256 3922ee2a0446385403ceba1547b868dd5f98856f3a2dc64da8f498c51c7b699a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyright_to_gitlab_ci-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cc3f9a59d417ccbf1a9ccfc4bc2dc34130ff1dbc998e327c64d6c9edcaf8f597
MD5 39dd11c70bfb36b8c1f0d199daafd601
BLAKE2b-256 0252e3b6cbad0fcff0ffbb7795c982fafeed155e71ec8e01cfbd33108ef0dab7

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