No project description provided
Project description
pcsFilter
Tool for filtering out Python Code Smells by formatting the code and checking the code style after.
pcsFilter is a wrapper around the following tools:
pcsFilter runs mentioned tools in a given order. The following functionality is applied on top:
- flake8 number of issues with details and radon cc score are saved upon
the first run to ./.pcsFilter folder. The ./.pcsFilter folder path is
default and can be overriden via the output path option
(
-o
or--output-path
). - When pcsFilter is executed again the new results are compared with the previous ones.
- If new results are worse then:
- a short message will be printed
- if "strict" (
-s
or--strict
) option is used then:- pcsFilter will exit with status = 1
- New scores and their details will be saved to a default or given output path.
Installation
pip install pcsFilter
Usage
Base
pcsFilter <path to project or file>
Strict
Fail with status = 1, when new scores are worse. Has no effect during the first run.
pcsFilter -s <path to project or file>
pcsFilter --strict <path to project or file>
Override output path
Default output path is ./.pcsFilter
. It can be overriden the following way:
pcsFilter -o <new output path> <path to project or file>
pcsFilter --output-path <new output path> <path to project or file>
Help message
pcsFilter --help
Contributing
Any contribution is always welcome!
Please follow this code of conduct.
This doc explains contribution details.
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
pcsfilter-1.0.0.tar.gz
(7.5 kB
view hashes)
Built Distribution
pcsfilter-1.0.0-py3-none-any.whl
(10.9 kB
view hashes)
Close
Hashes for pcsfilter-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f370257d068eec22a00dd2be103763e93fde3ca3590d6bb02bb258d7a90361f7 |
|
MD5 | 095d20ae18cc6d9a324b01fe52ef1d51 |
|
BLAKE2b-256 | af0ae84b26b96fe173c6d3fc144aaf685ae7e17146e0d2ce33bcdb80973604b4 |