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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyright_to_gitlab-1.0.2.tar.gz.
File metadata
- Download URL: pyright_to_gitlab-1.0.2.tar.gz
- Upload date:
- Size: 46.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c646004f8ce2e323239ada664e26c29b15956afa9e65a076bca7c53103d64358
|
|
| MD5 |
744ed93853f92204327d13969fa903df
|
|
| BLAKE2b-256 |
da21712b2192fceb6dcafae260fa45d5a42890f87c84e304d72ca545420037fb
|
Provenance
The following attestation bundles were made for pyright_to_gitlab-1.0.2.tar.gz:
Publisher:
python.yml on schollm/pyright-to-gitlab
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyright_to_gitlab-1.0.2.tar.gz -
Subject digest:
c646004f8ce2e323239ada664e26c29b15956afa9e65a076bca7c53103d64358 - Sigstore transparency entry: 227633736
- Sigstore integration time:
-
Permalink:
schollm/pyright-to-gitlab@925be7e20e3fad5552bd69efc4abd4945b7f8e70 -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/schollm
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python.yml@925be7e20e3fad5552bd69efc4abd4945b7f8e70 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pyright_to_gitlab-1.0.2-py3-none-any.whl.
File metadata
- Download URL: pyright_to_gitlab-1.0.2-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d145b51f0cec0bed4d45d0c4587b8df1e5be325be03e027c8a884bd580e8278a
|
|
| MD5 |
34bf0e33cba5dcd3df5aaa7350e3c3f2
|
|
| BLAKE2b-256 |
ed801135eed7647594df501c6c0d56f028e29bd4a191004abff7ba3454fe9240
|
Provenance
The following attestation bundles were made for pyright_to_gitlab-1.0.2-py3-none-any.whl:
Publisher:
python.yml on schollm/pyright-to-gitlab
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyright_to_gitlab-1.0.2-py3-none-any.whl -
Subject digest:
d145b51f0cec0bed4d45d0c4587b8df1e5be325be03e027c8a884bd580e8278a - Sigstore transparency entry: 227633746
- Sigstore integration time:
-
Permalink:
schollm/pyright-to-gitlab@925be7e20e3fad5552bd69efc4abd4945b7f8e70 -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/schollm
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python.yml@925be7e20e3fad5552bd69efc4abd4945b7f8e70 -
Trigger Event:
push
-
Statement type: