{"id":13735435,"url":"https://github.com/awelzel/flake8-gl-codeclimate","last_synced_at":"2025-04-13T17:24:36.673Z","repository":{"id":35002714,"uuid":"195557980","full_name":"awelzel/flake8-gl-codeclimate","owner":"awelzel","description":"Flake8 formatter producing Gitlab Code Quality artifacts.","archived":false,"fork":false,"pushed_at":"2023-10-23T17:09:07.000Z","size":33,"stargazers_count":25,"open_issues_count":4,"forks_count":12,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-20T15:15:38.821Z","etag":null,"topics":["codeclimate","flake8","flake8-plugin","gitlab","gitlab-ci","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/awelzel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-07-06T16:01:19.000Z","updated_at":"2024-11-12T22:42:39.000Z","dependencies_parsed_at":"2024-01-06T10:08:30.481Z","dependency_job_id":"ef1b397b-a17d-4a55-9ef1-b95ea4238ce8","html_url":"https://github.com/awelzel/flake8-gl-codeclimate","commit_stats":{"total_commits":33,"total_committers":6,"mean_commits":5.5,"dds":0.303030303030303,"last_synced_commit":"aaf31ee5ad827bfca275248681f8612d2db641c3"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awelzel%2Fflake8-gl-codeclimate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awelzel%2Fflake8-gl-codeclimate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awelzel%2Fflake8-gl-codeclimate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awelzel%2Fflake8-gl-codeclimate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/awelzel","download_url":"https://codeload.github.com/awelzel/flake8-gl-codeclimate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248751270,"owners_count":21155861,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codeclimate","flake8","flake8-plugin","gitlab","gitlab-ci","python"],"created_at":"2024-08-03T03:01:06.820Z","updated_at":"2025-04-13T17:24:36.640Z","avatar_url":"https://github.com/awelzel.png","language":"Python","readme":"# flake8-gl-codeclimate\n\n[![Build Status](https://travis-ci.org/awelzel/flake8-gl-codeclimate.svg?branch=master)](https://travis-ci.org/awelzel/flake8-gl-codeclimate)\n\nFlake8 formatter producing [Gitlab Code Quality artifacts][1].\n\n## Usage\n\nBy default, Flake8 will print to standard output. However, the purpose of this\nformatter is to produce a JSON file that is then stored as Code Quality artifact\nby Gitlab (see below) - the output itself isn't very human-readable:\n```\n$ pip install flake8-gl-codeclimate\n$ flake8 --format gl-codeclimate examples/trailing-whitespace.py\n[\n    {\"type\": \"issue\", \"check_name\": \"pycodestyle\", \"description\": \"trailing whitespace [W291]\", ... }\n]\n```\n\n## Adding it to Gitlab\n\nTo enable Code Quality reports based on Flake8 in Gitlab merge requests,\nadd a configuration as follows to your projects `gitlab-ci.yml` file.\n\n```\nflake8:\n  script:\n    - pip install flake8-gl-codeclimate\n    - flake8 --exit-zero --format gl-codeclimate --output-file gl-code-quality-report.json my_package/\n  artifacts:\n    reports:\n      codequality: gl-code-quality-report.json\n```\nThis will upload the `gl-code-quality-report.json` as Gitlab Code Quality artifact.\nAfterwards, code quality improvements and degradations should show up in\nmerge requests on Gitlab.\n\nGitlab Code Quality artifacts are a subset of the [Code Climate spec][2].\n\nHave fun!\n\n\n[1]: https://docs.gitlab.com/ee/user/project/merge_requests/code_quality.html\n[2]: https://github.com/codeclimate/spec/blob/master/SPEC.md#data-types\n","funding_links":[],"categories":["Formatters"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawelzel%2Fflake8-gl-codeclimate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fawelzel%2Fflake8-gl-codeclimate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawelzel%2Fflake8-gl-codeclimate/lists"}