Skip to content

A Code Climate plugin for Python's mypy static type checker

Notifications You must be signed in to change notification settings

ErezAmihud/mypy-to-codeclimate

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

codeclimate-mypy

mypy-to-codeclimate is a converter from mypy to codeclimate report for gitlab ci.

Run

mypy --show-error-end --show-absolute-path

python mypy-to-codeclimate in_file.txt out_file.txt

when running mypy-to-codeclimate.py all the paths in the codeclimate report are relative to the current working directory, so run this on the root of the project.
Otherwise gitlab won't parse the paths very well.

Also supports

  • The --show-column-numbers --show-error-end are supported
  • Fingerprint (like this mr)

Note

There are more options like this, like https://pypi.org/project/mypy-gitlab-code-quality/ but it doesn't support basic things like end line, and specific columns.

About

A Code Climate plugin for Python's mypy static type checker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%