lint_review
Plug in any linter for a code review!
Features:
- Creates merge request comments according to linter comments
- Easy to expand to any linter - just pass
--custom-patternwith a regex capturing the important parts of the linter errors. - Automatically resolves any comments that are no longer relevant.
Usage:
- Create an access token with
apipremissions - Pipe your linter into
lint_reviewas part of your merge request CI - Make a few mistakes (we all do)
- Fix the comments as they pop up
Full interface
usage: lint_review [-h] [--linter {flake8,mypy}] --reviewer {dry,gitlab}
[--custom_pattern CUSTOM_PATTERN] [--token TOKEN]
[--project PROJECT] [--merge_request MERGE_REQUEST]
optional arguments:
-h, --help show this help message and exit
--linter {flake8,mypy}
Name of the linter to use
--reviewer {dry,gitlab}
The service used to review the code
--custom_pattern CUSTOM_PATTERN
A custom regex pattern to capture comments. The
pattern must have the named capture groups: {'line',
'message', 'path'} and optionally col
gitlab:
--token TOKEN API token for gitlab, Is required for gitlab usage
--project PROJECT Project ID of the merge request, defaults to
enviroment variable set by pipeline.
--merge_request MERGE_REQUEST
Internal ID of the merge request, defaults to
enviroment variable set by pipeline.
Metadata
Release files for lint-review 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| lint_review-0.1.3.tar.gz | 5.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lint_review-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.5 kB
Release files / lint_review-0.1.3.tar.gz
| Download URL | lint_review-0.1.3.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
625fd6baa80339f059bae43c52e61c7c38caac720cd2f8fa53e69bb324dcc700
|
|
BLAKE2b-256 checksum How to use checksums |
9a13257b99e1ad115b264abc5399e305a540dd3dfabf6a90eca2519fcdbb2764
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.7.9 Linux/4.19.78-coreos
|
Release files / lint_review-0.1.3-py3-none-any.whl
| Download URL | lint_review-0.1.3-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e91dcb4b103fe2ace951a0bb3b2000958b7326bb0df2ad12165aebcecfe69a8f
|
|
BLAKE2b-256 checksum How to use checksums |
55afd967796e066d88237c2ecb2415f0adf0eac3ff2cb5456cd31d8ce8db24f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.7.9 Linux/4.19.78-coreos
|
Security for lint-review 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.