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
File details
Details for the file pcsfilter-1.0.4.tar.gz
.
File metadata
- Download URL: pcsfilter-1.0.4.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.0 Linux/6.2.0-1012-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a91a08e023d50a2d297650ad3d0a9d93295143e07ecfe0cabada67a9ad58d7c |
|
MD5 | 4abd36064b7f17d1e7dad2ff160177c1 |
|
BLAKE2b-256 | f4fa1fe47c6829ee36644829646f272bf5a4a50269c0f4294ea634d85cf79b6e |
Provenance
File details
Details for the file pcsfilter-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: pcsfilter-1.0.4-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.0 Linux/6.2.0-1012-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4aecfba9fd4f011662872775112ccb92822de1fa777b9a6a06eeee9da3f52cb |
|
MD5 | 5c59e1e523d6808182b1df1d8f486c0f |
|
BLAKE2b-256 | 90ac79c2d5c36706e685d32494d13a13f7bce288581524c26cd253e3b61053c1 |