A pragmatic, resilient Python linter and formatter
Project description
Drace
Drace is a pragmatic Python linter and formatter focused on readability, maintainability, and practical code quality signals.
Highlights
- Lint + format + score workflows in one CLI
- Syntax-tolerant analysis so broken files still receive useful feedback
- Rule-driven autofix with multi-pass formatting
- Strict CI mode via
--strict-fix - Configurable defaults through
drace config
Installation
pip install drace
Quick Start
drace lint src/
drace format src/
drace format src/ --diff
drace format src/ --strict-fix
drace score src/
Configuration
drace config list
drace config line_len 100
drace config ignored_rules + Z221
drace config reset all
Flexible separators are supported:
drace config line_len = 100
drace config color :: on
Documentation
docs/README.mddocs/engine.mddocs/autofix.mddocs/config.mddocs/rules/README.md
Philosophy
Drace emphasizes structure over cosmetic compliance. It flags maintainability pressure early so teams can keep code easy to understand and safe to change.
Limitations
- Python-focused tooling
- Deeper analysis may be slower than style-only linters
- Opinionated defaults may differ from strict PEP8-only setups
License
MIT. See LICENSE.
Contributing
See CONTRIBUTING.md.
Project details
Release history Release notifications | RSS feed
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 drace-2.3.1.tar.gz.
File metadata
- Download URL: drace-2.3.1.tar.gz
- Upload date:
- Size: 119.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf291db23dd4c1dfa7c8bf24b8a888061a808e5aeca6e2980cf640999ef8c2c3
|
|
| MD5 |
3791e4e6309e54de36e76fd7dd4fd9fa
|
|
| BLAKE2b-256 |
4adf7d88ce2411152bf491d5ae8ae9a8a07dbedac7741001cc1d4c62e12faa03
|
Provenance
The following attestation bundles were made for drace-2.3.1.tar.gz:
Publisher:
publish.yml on 2kDarki/drace
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
drace-2.3.1.tar.gz -
Subject digest:
bf291db23dd4c1dfa7c8bf24b8a888061a808e5aeca6e2980cf640999ef8c2c3 - Sigstore transparency entry: 1437740294
- Sigstore integration time:
-
Permalink:
2kDarki/drace@9cdd296782b64690d3250736351b4d0934459403 -
Branch / Tag:
refs/tags/v2.3.1 - Owner: https://github.com/2kDarki
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9cdd296782b64690d3250736351b4d0934459403 -
Trigger Event:
push
-
Statement type:
File details
Details for the file drace-2.3.1-py3-none-any.whl.
File metadata
- Download URL: drace-2.3.1-py3-none-any.whl
- Upload date:
- Size: 132.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a600bff6c77d28f7714e8406f4da66b20b69a2ee24acf6780c173ff8fdf40c7b
|
|
| MD5 |
a3f40a2a75b2d31b3ee3b6ceaada5165
|
|
| BLAKE2b-256 |
898bee147e9eb2a92809db7e9683084fadcd6e6a793458a0194161744daed204
|
Provenance
The following attestation bundles were made for drace-2.3.1-py3-none-any.whl:
Publisher:
publish.yml on 2kDarki/drace
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
drace-2.3.1-py3-none-any.whl -
Subject digest:
a600bff6c77d28f7714e8406f4da66b20b69a2ee24acf6780c173ff8fdf40c7b - Sigstore transparency entry: 1437740301
- Sigstore integration time:
-
Permalink:
2kDarki/drace@9cdd296782b64690d3250736351b4d0934459403 -
Branch / Tag:
refs/tags/v2.3.1 - Owner: https://github.com/2kDarki
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9cdd296782b64690d3250736351b4d0934459403 -
Trigger Event:
push
-
Statement type: