Detect AI-generated code patterns via static analysis
Project description
[!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/callablewhen 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4247c47edd48f4749fded43fd5dc8247ae9b47610923321232bb999fccb92f92
|
|
| MD5 |
30f4c73764eac1f163f96da0ac911db4
|
|
| BLAKE2b-256 |
fd30fcab882738c04e046905d6fef9b3aa0b04f3354f9d72fadc4f9d15410bb9
|
Provenance
The following attestation bundles were made for no_slop-0.5.0.tar.gz:
Publisher:
release.yml on HardMax71/no-slop
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
no_slop-0.5.0.tar.gz -
Subject digest:
4247c47edd48f4749fded43fd5dc8247ae9b47610923321232bb999fccb92f92 - Sigstore transparency entry: 829386267
- Sigstore integration time:
-
Permalink:
HardMax71/no-slop@96734220b32b9220858b6e60cfa99dde7bb6c0a9 -
Branch / Tag:
refs/tags/v0.5.0 - Owner: https://github.com/HardMax71
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@96734220b32b9220858b6e60cfa99dde7bb6c0a9 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
940393b66763fc8428ace50d33c48be578046fa011860950f33f17f65d0d9f20
|
|
| MD5 |
6adf07f7c99879ba7794b0a7aa01d335
|
|
| BLAKE2b-256 |
0f4156c3abd6ae6a13db4ecbf888e137ab2917f768de3875bd8e313011db597e
|
Provenance
The following attestation bundles were made for no_slop-0.5.0-py3-none-any.whl:
Publisher:
release.yml on HardMax71/no-slop
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
no_slop-0.5.0-py3-none-any.whl -
Subject digest:
940393b66763fc8428ace50d33c48be578046fa011860950f33f17f65d0d9f20 - Sigstore transparency entry: 829386274
- Sigstore integration time:
-
Permalink:
HardMax71/no-slop@96734220b32b9220858b6e60cfa99dde7bb6c0a9 -
Branch / Tag:
refs/tags/v0.5.0 - Owner: https://github.com/HardMax71
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@96734220b32b9220858b6e60cfa99dde7bb6c0a9 -
Trigger Event:
push
-
Statement type: