About
Code quality is a light weight quality check library for Python project or a Python file. It is heavily inspired by the books of Robert C. Martin. It can be used as a consistent measure for readability and maintainability.
How many times have you seen bulky functions, inconsistent casing for variables, long if-else chains and thought to yourself if there was a way to weed out such things before they make it to the Production environment... Well here's my answer to that. Feel free to use this as a check for your projects.
Code quality will rate your projects on different parameters and also provide possible resolutions if any parameter score is low. The vision behind this tool is to not have readability and maintainability as best practices, but an industry standard.
Installation and getting started
# Install
pip install code-quality
# Using
python -m code_quality -d {{complete filepath for your project}}
Features
- Checks for readability by the principles defined by Robert C. Martin et al. Gives out a report with different scores.\
- Very lightweight and blazing fast tests. Optimized for heavy repositories.\
- Gives out Possible resolution in case any paramter is lower than it should be. (As this is the first version, this feature is very limited)
Technologies
The following tools were used in this project:
Requirements
Before starting 🏁, you need to have Git and Python installed.
Starting For Developers
bash
# Clone this project
$ git clone https://github.com/ArthDubey/code_quality
# Access
$ cd code_quality
# Install dependencies
$ pip install -r requirements.txt
# Run the project
$ python -m code_quality -d {{project_filepath}}
# Report will be generated in terminal
License
This project is under license from MIT. For more details, see the LICENSE file.
Metadata
Release files for code-quality 0.0.4
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 | Actions |
|---|---|---|---|---|
| code_quality-0.0.4.tar.gz | 9.0 kB | Without provenance | Details for code_quality-0.0.4.tar.gz |
Release files / code_quality-0.0.4.tar.gz
| Download URL | code_quality-0.0.4.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
46a3c1fc481f1059f7ef135c3204730b879faf857934b06f08f91d214bb86c1f
|
|
BLAKE2b-256 checksum How to use checksums |
d6d1561627512a57f81dfb314e87b85e70b24a73bb7706b91f746e12a76d6cc4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.0
|
Security for code-quality 0.0.4
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.