Run to flag the issues, ask you agent to fix them:
uvx pyunslop
Add to you AGENTS.md file:
DO run `uvx pyunslop` and fix any warnings
Rules
| Code | Warning |
|---|---|
| SLOP001 | More than 10 complexity points without a standalone comment. |
| SLOP002 | Missing blank line before a standalone comment block. |
| SLOP003 | Forbidden noqa suppression directive in a comment. |
| SLOP004 | Name asynchronous SQLAlchemy/SQLModel query results before consuming them. |
| SLOP005 | Use Sequence[T] for read-only query-result return types. |
| SLOP006 | Avoid redundant list(result.all()) copies when a sequence is sufficient. |
| SLOP007 | Iterate buffered query results directly instead of iterating result.all(). |
| SLOP008 | Pass generators rather than single-use list comprehensions to SQLAlchemy .in_(). |
| SLOP009 | Name allowlisted domain-class instances before calling their methods. |
| SLOP010 | Declare FastAPI JSON endpoint response schemas explicitly. |
| SLOP011 | Return API payloads directly instead of generic success envelopes. |
| SLOP012 | Reject leading module docstrings (CLI help exempt). |
| SLOP013 | Replace single literal-case pytest parametrization when it adds no fixture/collection behavior. |
| SLOP014 | Order Pydantic model fields from shortest name to longest within each section. |
| SLOP015 | Review response-model reconstruction when the route already declares that model. |
| SLOP016 | Use an explicit loop for dependent walrus bindings in comprehension constructor arguments. |
| SLOP017 | Review single-use list materialization for known iterable-only consumers. |
| SLOP018 | Prefer scalar query APIs for scalar-result consumption, preserving cardinality checks. |
| SLOP019 | Review rows loaded solely to check size, existence, or a threshold. |
| SLOP020 | Review transparent forwarding wrappers and subclasses with no added behavior. |
| SLOP021 | Review classes that only store and use a borrowed client. |
| SLOP022 | Review immediate post-commit ORM refreshes. |
| SLOP023 | Review inlining single-use literal constants. |
Suggested Ruff configurations
The rules complement an exising ruff configuration, this is our suggestion:
Install Ruff separately and add these settings to your pyproject.toml.
Run ruff check and ruff format --check separately; pyunslop does not run Ruff.
Comment spacing is delegated to Ruff's E262/E265, and direct list comprehensions
passed to sum, min, max, or set to C419/C403. Preview mode is required
for the comment checks and C419's sum/min/max coverage.
[tool.ruff]
line-length = 140
target-version = "py310"
[tool.ruff.format]
skip-magic-trailing-comma = true
[tool.ruff.lint]
preview = true
select = [
"F", "UP", "D", "DTZ", "I", "ICN", "PIE", "RET", "ARG", "N",
"PERF", "PTH", "A", "S", "ASYNC", "ANN", "B006", "E302", "E305",
"E262", "E265", "C403", "C419",
"PGH003", "PT", "RUF100", "S324", "S506", "TID252",
]
ignore = ["D100", "D104", "D202"]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["ARG", "N803", "S"]
[tool.ruff.lint.isort]
no-sections = true
length-sort = true
split-on-trailing-comma = false
[tool.ruff.lint.pep8-naming]
extend-ignore-names = ["visit_*"]
Metadata
Release files for pyunslop 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyunslop-0.0.1.tar.gz | 34.6 kB | With provenance | Details for pyunslop-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyunslop-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for pyunslop-0.0.1-py3-none-any.whl |
Total release size: 72.0 kB
Release files / pyunslop-0.0.1.tar.gz
| Download URL | pyunslop-0.0.1.tar.gz |
|---|---|
| Size | 34.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5bb630742d75348e9d99d56c39e3e25d2ca1f7d59d257d6c0175c1c9d5468578
|
|
BLAKE2b-256 checksum How to use checksums |
2eeb937b1877f6f6b694ae9d66ad21702c1ed9a79d59d046e200295c912fca8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.
Transparency logRelease files / pyunslop-0.0.1-py3-none-any.whl
| Download URL | pyunslop-0.0.1-py3-none-any.whl |
|---|---|
| Size | 37.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bd544a27e213beb351d22f63ed8b75a6ca51b4fdcbc753eea7fdb296a9c9dd40
|
|
BLAKE2b-256 checksum How to use checksums |
e78d6613d92073d378008fa9da3535914b5d9403cbd6738a3f9077e18011c228
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.
Transparency logSecurity for pyunslop 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pyunslop-0.0.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.