Skip to main content

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 functions
  • bare_ratio: checks for the ratio of bare excepts to meaningful exception usage
  • count_exceptions: counts how many of each type of exception there are (including bare except)
  • size_counts: various linecount-related code complexity checks
  • with_open: checks for open in the absense of with and manual calls to close()

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

inspectr-0.0.2.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

inspectr-0.0.2-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file inspectr-0.0.2.tar.gz.

File metadata

  • Download URL: inspectr-0.0.2.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for inspectr-0.0.2.tar.gz
Algorithm Hash digest
SHA256 5b5d97d9b49bfca5194d3377114cb29d7970ec14bfe4f71e438e9a8c59169ebd
MD5 63da5e92fa0ef2c30becd3d574a2f255
BLAKE2b-256 4323e8023a3f9f730c41accd10a521a1315197c0c676939ae2de23e8c32d72ef

See more details on using hashes here.

File details

Details for the file inspectr-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: inspectr-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for inspectr-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1cda2543ae1192af2da6202e8ac0c9e6916f4538bde1b9b7d997a84c7ca756ef
MD5 f066448c02499f23d55c5710caa55f27
BLAKE2b-256 46db37122f9597723ec6a6f43455fc5ae30cf2dcf23b99da411de64f193d395d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page