Skip to main content

Rude Clean Code

Clean Code plugin for the Rude Python linter, exposing deterministic size, parameter, scope, and complexity rules (CC101–CC104, CC201–CC202, CC301–CC303) through Rude's rude.plugins entry point.

Installation

pip install rude-clean-code

Rude discovers the plugin automatically via rude.plugins once installed.

Basic profile

Add the Basic profile snippet to your pyproject.toml:

[tool.rude]
select = ["CC1", "CC2", "CC3"]

[tool.rude.rules.CC101]
max_lines = 30

Run Rude from the command line:

rude check --select CC src/

All deterministic core rules report WARNING severity with measured value, configured limit, and a suggested refactoring action.

Implemented rules

  • Functions (CC1xx): CC101 (max_lines = 30), CC102 (max_parameters = 5), CC103 (max_returns = 5), CC104 (max_locals = 10)
  • Classes (CC2xx): CC201 (max_lines = 200), CC202 (max_methods = 15)
  • Complexity (CC3xx): CC301 (max_depth = 4), CC302 (max_operands = 3), CC303 (max_branches = 10)

The package initializer rude_clean_code exposes only VERSION (read from installed distribution metadata); plugin rules live in rude_clean_code.plugin.

See the repository README and rule reference for full detection contracts, configuration options, and the backlog roadmap.

Metadata

Release files for rude-clean-code 0.1.0

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

Source distribution (sdist)

Source distribution for rude-clean-code 0.1.0
File Size Uploaded Provenance Actions
rude_clean_code-0.1.0.tar.gz 15.0 kB With provenance Details for rude_clean_code-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rude-clean-code 0.1.0
File Interpreter ABI Platform Actions
rude_clean_code-0.1.0-py3-none-any.whl Python 3 none any Details for rude_clean_code-0.1.0-py3-none-any.whl

Total release size: 25.7 kB

Release files / rude_clean_code-0.1.0.tar.gz

Download URL rude_clean_code-0.1.0.tar.gz
Size 15.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7820e9d63fb744bb2c973befdce94d604b191b5a81fddf210acd3d8f78704642
BLAKE2b-256 checksum
How to use checksums
35ea646af1969df491093b202729f53c054b97c3e61798104ada2a8ca8c0b536
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 Nov 10, 2026.

Transparency log

Release files / rude_clean_code-0.1.0-py3-none-any.whl

Download URL rude_clean_code-0.1.0-py3-none-any.whl
Size 10.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1bd6645d9801e932c6d96bd19462c08a3ef816bcfec78fbda04c44b3283a6f4e
BLAKE2b-256 checksum
How to use checksums
17ee02e1a36063b7d135086c474cd204c5ee8fda92f01ee4a90c27e2da127708
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 Nov 10, 2026.

Transparency log

Security for rude-clean-code 0.1.0

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 rude_clean_code-0.1.0.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 Nov 10, 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