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.2.0.tar.gz (17.6 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.2.0-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: no_slop-0.2.0.tar.gz
  • Upload date:
  • Size: 17.6 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.2.0.tar.gz
Algorithm Hash digest
SHA256 98e14a6dac35edde9bfdb3c3b223ceaf250e5c70f0fedfe5986d22410c88bb3a
MD5 846ad06123109cce131c5f28f0f46c53
BLAKE2b-256 0c113099c143a708812f48a15b67287052676e03542c6f584b5bf846c1737fbb

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: no_slop-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 12.6 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 908b5e50930c62de040af4498181ab2c4ec98a225e44694d5180fc55059cd66a
MD5 1d3e55891557c02042beb3695ff36e3e
BLAKE2b-256 712f1e066199a763be3a16b4b69d02381982ddd62c6d53071cac7df2caaacd75

See more details on using hashes here.

Provenance

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