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.4.tar.gz (9.2 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.4-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

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

Hashes for inspectr-0.0.4.tar.gz
Algorithm Hash digest
SHA256 11ef122d718d05ebe1cbbb4df50bd37e2c975a99296745fb263e45554aa12954
MD5 072687330acfaa7ae3597434c57b54e7
BLAKE2b-256 fedfd2ea2093075a31cc6cf610fd60ec4c37a060a7fa8cbcb4dc3437123751b3

See more details on using hashes here.

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

Hashes for inspectr-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 66856686084888632eef29e5d70dc126e358830b5f6b50215805978d92e960be
MD5 766bd038ed3861a3ffc9c3836112accc
BLAKE2b-256 61c55efcb42e8d30551b1f303f310bb8c5b1ccc1b1dd4d770e8980834d49e02e

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