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.3.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.3-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: inspectr-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 08e36f72d4d1f3021300d1f2d99b75ac4eb781a101c9a8e34f07beea5867120f
MD5 23b439cde23dd33ceface042d68565a0
BLAKE2b-256 d7c9e5e0054951a90b0eb49a23b9419ba3b4d68902faf05fb870f768fd34938d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: inspectr-0.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 12c607bc8a28a3b7e5f8d6f41269c950e8c8319e0ed4dd6efd91d5c9eedd4eba
MD5 88f70aae94a3fb6b10b9ec360000df81
BLAKE2b-256 b45f931bdde193e4018a0890b488208b716917052ea8d57461e37e4178c152df

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