Skip to main content

Generate GitLab Code Quality report from typos output

Project description

typos-gitlab-code-quality

Generate GitLab Code Quality report from typos output.

Usage

Read from stdin:

$ typos --format json | typos-gitlab-code-quality

Read from file:

$ typos --format json > typos-report.json
$ typos-gitlab-code-quality typos-report.json

Example .gitlab-ci.yml

With pip:

typos:
  image: python:alpine
  script:
    - pip install typos typos-gitlab-code-quality
    # "|| true" is used for preventing job fail when typos find errors
    - typos --format json > typos-report.json || true
    - typos-gitlab-code-quality < typos-report.json > codequality.json
  artifacts:
    when: always
    reports:
      codequality: codequality.json

With uv:

typos:
  image: ghcr.io/astral-sh/uv:python3.14-alpine
  script:
    # "|| true" is used for preventing job fail when typos find errors
    - uvx typos --format json > typos-report.json || true
    - uvx typos-gitlab-code-quality < typos-report.json > codequality.json
  artifacts:
    when: always
    reports:
      codequality: codequality.json

Acknowledgements

This project is inspired by mypy-gitlab-code-quality.

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

typos_gitlab_code_quality-1.0.0.tar.gz (48.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

typos_gitlab_code_quality-1.0.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file typos_gitlab_code_quality-1.0.0.tar.gz.

File metadata

File hashes

Hashes for typos_gitlab_code_quality-1.0.0.tar.gz
Algorithm Hash digest
SHA256 cf3f1aa233f65f2f3352d3666c70bd9f459f6816c0300ec1ba7041d4aa245284
MD5 5c3fff917f7ab57104d4e8d7ac4e6de0
BLAKE2b-256 3a68c56a0ae94fd897b0c17075a01fa9877f9fe532a73405351513824aa15713

See more details on using hashes here.

Provenance

The following attestation bundles were made for typos_gitlab_code_quality-1.0.0.tar.gz:

Publisher: release.yml on tahv/typos-gitlab-code-quality

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file typos_gitlab_code_quality-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for typos_gitlab_code_quality-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 61585b2f7991c952e77995f2686ba2562284bdf5c86570c05db68a0aa9c9703f
MD5 30ce34cc684fcac59f4aea54d8c07337
BLAKE2b-256 8ffd11d1a3abf94f7ff75f54582712b2e9273b0982353170a547b4a2a806d544

See more details on using hashes here.

Provenance

The following attestation bundles were made for typos_gitlab_code_quality-1.0.0-py3-none-any.whl:

Publisher: release.yml on tahv/typos-gitlab-code-quality

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