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)
  • duplicates: looks for occurrences of duplicate code (default: 10+ lines, 3+ occurrences)
  • 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.5.tar.gz (9.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.5-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: inspectr-0.0.5.tar.gz
  • Upload date:
  • Size: 9.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.5.tar.gz
Algorithm Hash digest
SHA256 90cd30d82f05482cc5de83d11e2e95d8d0e7eadae114686514c4a9cb36d5a7d3
MD5 dbb7bc22ba1eb686118450d704a19089
BLAKE2b-256 f76e7e960c5bc5863c4b6bb9f4245b06a3079415da8cae57d012d32e0cba4687

See more details on using hashes here.

File details

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

File metadata

  • Download URL: inspectr-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 11.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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 2cb9eee980bafb6b3e857111fdb3855a65f03073644bfac74f0ad535b48f37fa
MD5 ebc3c2b479869a224c3546105c3619bb
BLAKE2b-256 dc07c2505bec267ce1e3d229290e55345c6a386d47d9c7d3fa50d36cf58cbd2d

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