mypy-gitlab-code-quality
Simple script to generate gitlab code quality report from output of mypy.
What it is and what it does
This package is a small converter that takes mypy's type-checking output and reformats it into GitLab's Code Quality report schema. It reads mypy's JSON (or plain text for backward compatibility) from stdin and writes a GitLab-compatible JSON report to stdout, designed to be used as a CI artifact in .gitlab-ci.yml pipelines.
The package has no runtime dependencies and is intended as a glue layer between mypy and GitLab CI. It supports Python 3.9 through 3.13 and is classified as Production/Stable, though its last release was over a year ago. It's most useful in GitLab CI workflows where you want type errors to appear in merge request code quality widgets.
Use it for:
- Integrate mypy type checking into GitLab CI pipelines so type errors appear in merge request code quality reports.
- Convert mypy JSON output to GitLab Code Quality format for automated code review feedback.
- Display type-checking violations alongside other code quality metrics in GitLab merge requests.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Converts mypy type-checking output into GitLab Code Quality report format for merge request integration.
Yes, if you use GitLab CI and mypy for type checking. It has no dependencies, low install friction, and a stable MIT license. The aging maintenance status (501 days since last release) is not a blocker for a simple, focused converter—but verify that it handles your mypy version's output format before relying on it in production CI.
Install
mypy-gitlab-code-quality on PyPI
pip
pip install mypy-gitlab-code-qualityuv
uv add mypy-gitlab-code-qualitypoetry
poetry add mypy-gitlab-code-qualityInstalling mypy-gitlab-code-quality
Before you install
Low friction install with no runtime dependencies. Maintenance is aging—last release was 501 days ago—but the repository remains active and the package is marked Production/Stable.
License in practice
MIT License permits free use, modification, and distribution with minimal restrictions, making it safe for commercial and open-source projects.
Quickstart
pip install mypy-gitlab-code-quality
mypy program.py --output=json | mypy-gitlab-code-quality > codequality.json
Requires mypy to be installed separately; designed to read mypy's JSON output via stdin.
Verify before relying
- Whether the package handles all mypy output formats reliably or only a subset of mypy versions.
- Performance characteristics when processing large mypy outputs or many type errors.
Package facts
| License | MIT License Copyright (c) 2021 Dmitry Samsonov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to… (full text in the JSON record) (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | aging — 501 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 409,350/month — #6,872 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: mypy_gitlab_code_quality-1.3.0-py3-none-any.whl
Keywords: gitlab, gitlab-ci, mypy, codequality
Tags
More Quality Assurance packages
Coverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI
ruffRuff is a Python linter and code formatter…
permissive · top 1,000 on PyPI
pexpectPexpect spawns and controls interactive console…
permissive · top 1,000 on PyPI
blackBlack reformats Python source code to a…
permissive · top 1,000 on PyPI
pytest-xdistpytest-xdist distributes pytest tests across…
permissive · top 1,000 on PyPI
cfn-lintValidates AWS CloudFormation templates in YAML…
permissive · top 1,000 on PyPI
pylint-gitlabProvides custom pylint output formatters that…
copyleft · top 5,000 on PyPI
secscanner2junitConverts GitLab security scanner output (SAST,…
copyleft · top 15,000 on PyPI
flake8-gl-codeclimateA Flake8 formatter that outputs linting results…
permissive · top 15,000 on PyPI
prefect-gitlabIntegrates Prefect workflow orchestration with…
permissive · top 15,000 on PyPI
mypyMypy is a static type checker for Python that…
permissive · top 1,000 on PyPI
streamlit-embedcodeEmbeds code snippets from external services…
unclear · top 15,000 on PyPI
markdown-to-confluenceConverts Markdown files to Confluence Storage…
permissive · top 5,000 on PyPI
pylint-json2htmlConverts pylint JSON reports into formatted…
copyleft · top 15,000 on PyPI
ast-serializeParses Python source files and serializes their…
permissive · top 1,000 on PyPI
cdk-gitlab-runnerDefines AWS infrastructure for GitLab Runner…
permissive · top 15,000 on PyPI