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.
Usage
Shell
Installation
pip install pcsFilter
Base command
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
Docker
Installation
docker pull alexdbondarev/pcsfilter:latest
Base command
docker run --rm -v $(PWD):/project -it alexdbondarev/pcsfilter:latest <path to project or file>
Strict
Fail with status = 1, when new scores are worse. Has no effect during the first run.
docker run --rm -v $(PWD):/project -it alexdbondarev/pcsfilter:latest -s <path to project or file>
docker run --rm -v $(PWD):/project -it alexdbondarev/pcsfilter:latest --strict <path to project or file>
Override output path
Default output path is ./.pcsFilter
. It can be overriden the following way:
docker run --rm -v $(PWD):/project -it alexdbondarev/pcsfilter:latest -o <new output path> <path to project or file>
docker run --rm -v $(PWD):/project -it alexdbondarev/pcsfilter:latest --output-path <new output path> <path to project or file>
Help message
docker run --rm -v $(PWD):/project -it alexdbondarev/pcsfilter:latest --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
Built Distribution
Hashes for pcsfilter-1.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4aecfba9fd4f011662872775112ccb92822de1fa777b9a6a06eeee9da3f52cb |
|
MD5 | 5c59e1e523d6808182b1df1d8f486c0f |
|
BLAKE2b-256 | 90ac79c2d5c36706e685d32494d13a13f7bce288581524c26cd253e3b61053c1 |