A collection of python tools to inspect code quality.
Project description
inspectr
A collection of python tools to inspect code quality.
Installation
python -m venv .venv/
source .venv/bin/activate
pip install inspectr
Usage
Generally, the syntax goes:
inspectr <subtool> [files...]
where <subtool> is one of the following:
authenticity: looks for TODO comments, empty try/except blocks, and stub functionsbare_ratio: checks for the ratio of bare excepts to meaningful exception usagecount_exceptions: counts how many of each type of exception there are (including bare except)size_counts: various linecount-related code complexity checkswith_open: checks foropenin the absense ofwithand manual calls toclose()
Please note: this project is in the early alpha stage, so don't expect the above subtool names to be stable between versions. I might even merge/split them at some point.
Project details
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file inspectr-0.0.4.tar.gz.
File metadata
- Download URL: inspectr-0.0.4.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11ef122d718d05ebe1cbbb4df50bd37e2c975a99296745fb263e45554aa12954
|
|
| MD5 |
072687330acfaa7ae3597434c57b54e7
|
|
| BLAKE2b-256 |
fedfd2ea2093075a31cc6cf610fd60ec4c37a060a7fa8cbcb4dc3437123751b3
|
File details
Details for the file inspectr-0.0.4-py3-none-any.whl.
File metadata
- Download URL: inspectr-0.0.4-py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66856686084888632eef29e5d70dc126e358830b5f6b50215805978d92e960be
|
|
| MD5 |
766bd038ed3861a3ffc9c3836112accc
|
|
| BLAKE2b-256 |
61c55efcb42e8d30551b1f303f310bb8c5b1ccc1b1dd4d770e8980834d49e02e
|