Skip to main content

Convert Pyright JSON output to GitLab CI/CD format

Project description

pyright to gitlab

PyPI version Python versions License: MIT Code style: ruff Typing: typed

Simple Python tool to convert Pyright JSON output to GitLab Code Quality report format.

Zero runtime dependencies - Pure Python implementation using only the standard library.

Usage

Run the script with the path to the pyright output file:

$ pip install pyright-to-gitlab
$  pyright . --outputjson | pyright-to-gitlab > code-quality.json 

Alternatively, the module can be called:

$ pip install pyright-to-gitlab
$  pyright . --outputjson | python -m pyright_to_gitlab > code-quality.json 

Custom path prefix

The --prefix option adds a custom prefix path to the file paths in the output. This is useful for mono-repos, where the paths in the pyright output is not the repository root.

$  pyright . --outputjson | pyright-to-gitlab --prefix my-app > code-quality.json

Testing

To run the tests, execute

$ uv run pytest tests/

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-1.3.1.tar.gz (47.1 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-1.3.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file pyright_to_gitlab-1.3.1.tar.gz.

File metadata

  • Download URL: pyright_to_gitlab-1.3.1.tar.gz
  • Upload date:
  • Size: 47.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pyright_to_gitlab-1.3.1.tar.gz
Algorithm Hash digest
SHA256 9f0f2c33c0bce3bcc278892add83a114eddbd5d37261314e007c0dd00ddf3e07
MD5 6f5b17d9ef309ba88eb8c81e229dee28
BLAKE2b-256 87d19da131c17ff5ae2c83c5541b1cb7f1a933b42fc12346e8a1a8a96df8e2f4

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyright_to_gitlab-1.3.1.tar.gz:

Publisher: python.yml on schollm/pyright-to-gitlab

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyright_to_gitlab-1.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pyright_to_gitlab-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b21cf4a22689913e5a71cbf1b0e03742c2fe06af32995cde0a798e8844ecf23a
MD5 0fae1d8bbb2880512b1b739be0962a50
BLAKE2b-256 d2ecc2e0221c9a914334b0895eaa4c07a8ca05ba3b3c0a29ae85fc38d5f24b12

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyright_to_gitlab-1.3.1-py3-none-any.whl:

Publisher: python.yml on schollm/pyright-to-gitlab

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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