Convert black --diff output to a Code Climate report
Reason this release was yanked:
Wrong minimum Python version supported.
Project description
black-codeclimate
Convert the output of black --diff
to a report conforming to the Code Climate spec. It is aimed at GitLab CI, for which it can generate a Code Quality report.
Usage
Pipe the output of black --diff
into black-codeclimate
:
black --diff src/ | black-codeclimate > black_report.json
Or specify a file to use as input:
black-codeclimate black.diff > black_report.json
You can also change the severity, description and check_name of the issues in the resulting report by specifying command line flags:
black-codeclimate --severity blocker --description "Would reformat" --check-name "black" black.diff > black_report.json
To include in GitLab CI:
lint:black:
stage: lint
script:
- # Install black and black-codeclimate...
- black --diff src/ | black-codeclimate > black_report.json
artifacts:
reports:
codequality: black_report.json
when: always
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for black_codeclimate-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82dd1ffba1c770676a439b607ec9a030d20db7445b4ea376e0f745c2b027d558 |
|
MD5 | 0900adc93cd4eee1d316f22b7d5959ec |
|
BLAKE2b-256 | edb5f91a5f499d07a1a44186d79139b392c7dbb236197d9cefaf7d21f46ecde7 |