Skip to main content

Detect AI-generated code patterns via static analysis

Project description

no-slop

Detect AI-generated code patterns via static analysis

License: MIT Python 3.10+ mypy flake8 CI codecov PyPI

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.

License

MIT

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.1.0.tar.gz (17.2 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.1.0-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: no_slop-0.1.0.tar.gz
  • Upload date:
  • Size: 17.2 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.1.0.tar.gz
Algorithm Hash digest
SHA256 f28470d5bcb0b9fdee9e5ce282d873084958669636dbd506b5542236577eadbd
MD5 680768fe7a619814874310035dc83f48
BLAKE2b-256 7c46929daf8dfed159e108fa2054acfe1f7f64077aebd19042cccacaf86b573e

See more details on using hashes here.

Provenance

The following attestation bundles were made for no_slop-0.1.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.1.0-py3-none-any.whl.

File metadata

  • Download URL: no_slop-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.1 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3f5b5405604fefb613a18dd5aa48417a8ecbba8c12d5518c7b8ad70de7a9d539
MD5 960ddbee62c9f872cbe880d9b6086769
BLAKE2b-256 e17039bf4ee35b555d93fbda7de2840913a3259e75543364299af91eafadd5b6

See more details on using hashes here.

Provenance

The following attestation bundles were made for no_slop-0.1.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