Skip to main content

Detect AI-generated code patterns via static analysis

Project description

no-slop

Detect AI-generated code patterns via static analysis

Python 3.10+ mypy flake8
CI codecov PyPI
License: MIT

[!NOTE] Why mypy/flake8? Ruff and ty don't support external plugins (ruff#283, ty blog).

Install

pip install no-slop

Usage

mypy plugin (redundant type checks):

# pyproject.toml
[tool.mypy]
plugins = ["no_slop.mypy_plugin"]

flake8 plugin (style checks) - auto-registers on install:

flake8 your_project/

Unused defaults CLI:

no-slop-unused-defaults /path/to/project

What it detects

  • Redundant isinstance/hasattr/getattr/callable when types guarantee the result
  • Runtime checks on Any/untyped values (add types instead)
  • ASCII art, emojis, excessive docstrings
  • Default parameters never used by any call site

See docs.md for full documentation.

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

no_slop-0.5.0.tar.gz (42.7 kB view details)

Uploaded Source

Built Distribution

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

no_slop-0.5.0-py3-none-any.whl (42.9 kB view details)

Uploaded Python 3

File details

Details for the file no_slop-0.5.0.tar.gz.

File metadata

  • Download URL: no_slop-0.5.0.tar.gz
  • Upload date:
  • Size: 42.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for no_slop-0.5.0.tar.gz
Algorithm Hash digest
SHA256 4247c47edd48f4749fded43fd5dc8247ae9b47610923321232bb999fccb92f92
MD5 30f4c73764eac1f163f96da0ac911db4
BLAKE2b-256 fd30fcab882738c04e046905d6fef9b3aa0b04f3354f9d72fadc4f9d15410bb9

See more details on using hashes here.

Provenance

The following attestation bundles were made for no_slop-0.5.0.tar.gz:

Publisher: release.yml on HardMax71/no-slop

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file no_slop-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: no_slop-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 42.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for no_slop-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 940393b66763fc8428ace50d33c48be578046fa011860950f33f17f65d0d9f20
MD5 6adf07f7c99879ba7794b0a7aa01d335
BLAKE2b-256 0f4156c3abd6ae6a13db4ecbf888e137ab2917f768de3875bd8e313011db597e

See more details on using hashes here.

Provenance

The following attestation bundles were made for no_slop-0.5.0-py3-none-any.whl:

Publisher: release.yml on HardMax71/no-slop

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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