skillfed

mypy-gitlab-code-quality

Simple script to generate gitlab code quality report from output of mypy.

mypy-gitlab-code-quality v1.3.0 409.4K downloads/30d#6,872 on PyPI25
Permissive 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) AGING released

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-quality

uv

uv add mypy-gitlab-code-quality

poetry

poetry add mypy-gitlab-code-quality

Installing 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

Development Status :: 5 - Production/StableLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9

Tags

mypy gitlab integrationcode quality report generationgitlab ci mypytype checking ci pipelinemypy json to gitlab format
gitlab-citype-checking

More Quality Assurance packages