Skip to main content
pyunslop banner

Keep Python code clear, for humans and coding agents

Tests License: MIT PyPI version


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 and Alembic revision headers 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_*"]


LongLink 2026

License   -   Contributing   -   Code of Conduct   -   Contact


Metadata

Release files for pyunslop 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyunslop 0.0.3
File Size Uploaded Provenance Actions
pyunslop-0.0.3.tar.gz 34.8 kB With provenance Details for pyunslop-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyunslop 0.0.3
File Interpreter ABI Platform Actions
pyunslop-0.0.3-py3-none-any.whl Python 3 none any Details for pyunslop-0.0.3-py3-none-any.whl

Total release size: 72.4 kB

Release files / pyunslop-0.0.3.tar.gz

Download URL pyunslop-0.0.3.tar.gz
Size 34.8 kB
Tags Source
SHA-256 checksum
How to use checksums
3709cf2f5e6187ed50e5f985103dd7f3e03f1712ff4d7e6112ad8e6cfcb40493
BLAKE2b-256 checksum
How to use checksums
8ff356030f716ed80401d94220476df721e8363d817ab10c0f9b2422d51a3e0d
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 log

Release files / pyunslop-0.0.3-py3-none-any.whl

Download URL pyunslop-0.0.3-py3-none-any.whl
Size 37.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fff25e1de819d15552fc3b19b5f9aaf3253678182ddd3079cb2084c38db6ed2d
BLAKE2b-256 checksum
How to use checksums
e1cd858200b623054aa4b4a05e483972f022b6d553d36bf60ee6f7ed19be9c2d
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 log

Security for pyunslop 0.0.3

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.

Select from 2 files

Attestation for pyunslop-0.0.3.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 log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page