{"id":23092,"library":"flake8-gl-codeclimate","title":"flake8-gl-codeclimate","description":"Flake8 formatter that outputs GitLab Code Quality artifact JSON. Current version 0.2.2. Low release cadence; maintained primarily by the community.","status":"active","version":"0.2.2","language":"python","source_language":"en","source_url":"https://github.com/tsbarnes/flake8-gl-codeclimate","tags":["flake8","gitlab","code quality","formatter"],"install":[{"cmd":"pip install flake8-gl-codeclimate","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Required runtime dependency","package":"flake8","optional":false}],"imports":[{"note":"The formatter class is in a submodule; direct import fails.","wrong":"from flake8_gl_codeclimate import CodeClimateFormatter","symbol":"CodeClimateFormatter","correct":"from flake8_gl_codeclimate.formatter import CodeClimateFormatter"}],"quickstart":{"code":"from flake8_gl_codeclimate.formatter import CodeClimateFormatter\nformatter = CodeClimateFormatter()\nprint(formatter) # Outputs a JSON string of GitLab Code Climate issues","lang":"python","description":"Create an instance of the formatter and use it to format flake8 results."},"warnings":[{"fix":"Use via flake8's --format flag or with flake8's Result class.","message":"The formatter expects flake8's internal representation; calling formatter.format() directly may fail if flake8's LintResult structure changes.","severity":"gotcha","affected_versions":"all"},{"fix":"Upgrade Python to 3.7+.","message":"Python 3.6 support is dropped in newer versions; ensure Python 3.7+.","severity":"deprecated","affected_versions":">=0.2.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"The correct import is `from flake8_gl_codeclimate.formatter import CodeClimateFormatter`.","cause":"Package part of extras? Actually pip install flake8-gl-codeclimate works, but import path uses underscores.","error":"ModuleNotFoundError: No module named 'flake8_gl_codeclimate'"},{"fix":"Use it via flake8 command: `flake8 --format=codeclimate` or subclass properly.","cause":"CodeClimateFormatter may not expose a public format() method; it's designed to be passed to flake8's --format.","error":"AttributeError: 'CodeClimateFormatter' object has no attribute 'format'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}