Another custom linter layer
Project description
custolint is a small library that help you customize your existing validations in pipelines:
Link to sphinx documentation [to be placed here] also a icon.
Implements:
Motivation
When you have a big old code base with thousands of lines, you can not just include a linter and enable 100% checks.
Instead, you just enable 1% of the checks, which is very sad for a decent developer.
Could you just enable to only check your changes ? YES, you can.
There is a better solution for this ! Welcome custolint - custom linter.
Idea
TODO: draw a diagram. Given we have a project alike custolint, where we:
changed a the function custolint/git.py:_blame
added a new function custolint/generics.py:filer_output
$ tree
.
|-- config.d
| |-- mypy.ini
| `-- pylintrc
|-- mypy.ini
|-- pyproject.toml
|-- setup.cfg
|-- src
| |-- custolint
| | |-- __init__.py
| | |-- cli.py
| | |-- coverage.py
| | |-- flake8.py
| | |-- generics.py
| | |-- git.py
| | |-- mypy.py
| | |-- pylint.py
| | `-- typing.py
|-- tests
| `-- test_custolint.py
We have to detect affected files with git diff and git blame
custolint/git.py
custolint/generics.py
Run the linter tool (pylint, flake8, mypy, coverage …) with all available feature enables (the configuration have to be placed into config.d/ folder) only on changed affected files or parse log/result of the linter tool.
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 Distributions
Built Distribution
Hashes for custolint-0.0.4.dev1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c7531ecca8de2ec236cfb944c311511d13ae23e85e152ce40cc8bc6da407d6c |
|
MD5 | 6e6dedba365146d3dd6745e5d3abfc03 |
|
BLAKE2b-256 | f5a37ca5a11159cbe0bd7dc9cbbe37a068ea03d92acdf13c1a8cc75039b590f5 |