Metadata-Version: 2.4
Name: pyright-to-gitlab
Version: 1.3.0
Summary: Convert Pyright JSON output to GitLab CI/CD format
Project-URL: homepage, https://github.com/schollm/pyright-to-gitlab/
Project-URL: repository, https://github.com/schollm/pyright-to-gitlab/
Project-URL: pypi, https://pypi.org/project/pyright-to-gitlab
Author: Micha Schöll
License-Expression: MIT
License-File: LICENSE
Keywords: ci/cd,gitlab,pyright
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Software Development
Classifier: Topic :: Software Development :: Testing
Classifier: Topic :: Utilities
Classifier: Typing :: Typed
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# pyright to gitlab

[![PyPI version](https://img.shields.io/pypi/v/pyright-to-gitlab.svg)](https://pypi.org/project/pyright-to-gitlab)
[![Python versions](https://img.shields.io/pypi/pyversions/pyright-to-gitlab.svg)](https://pypi.org/project/pyright-to-gitlab)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Code style: ruff](https://img.shields.io/badge/code%20style-ruff-000000.svg)](https://github.com/astral-sh/ruff)
[![Typing: typed](https://img.shields.io/badge/typing-typed-blue.svg)](https://github.com/python/mypy)

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:
```shell
$ pip install pyright-to-gitlab
$  pyright . --outputjson | pyright-to-gitlab > code-quality.json 
```

Alternatively, the module can be called:
```shell
$ 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.


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

## Testing
To run the tests, execute
```shell
$ uv run pytest tests/
```
