Skip to main content

Convert Pyright JSON output to GitLab CI/CD format

Project description

pyright to gitlab

Simple zero-dependency Python script to convert a pyright --outputjson to a gitlab code-quality report.

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 to the file paths in the output. This is useful if the paths in the pyright output are not relative to the root of the repository.

$  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.1.0.tar.gz (46.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-1.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyright_to_gitlab-1.1.0.tar.gz
Algorithm Hash digest
SHA256 6ae24b634078ee903ed9a5ff7870a16ee0dc0d276b902a78eda393da6c6a7d16
MD5 ca69c895d4ff446e4bdc57ea2e94872d
BLAKE2b-256 a41604f7dddc7606cd4e2f5597713bcc9ab4bdaca50afefe5fa25777082ae0fe

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyright_to_gitlab-1.1.0.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.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pyright_to_gitlab-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8812521f77ab6c180ef0fe6c152feb10aabd5b0967c958dcf2f9d8ba51492ab0
MD5 a9d9a77d7cbfd3dd8cf5b9b530ba89ec
BLAKE2b-256 5049b907a54caba854c7b50629f3f9de6e376ab8d5259b0edea0a55e7a829a50

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyright_to_gitlab-1.1.0-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