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.
Metadata
Release files for drace 2.3.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 | |
|---|---|---|---|---|
| drace-2.3.1.tar.gz | 119.6 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| drace-2.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 252.4 kB
Release files / drace-2.3.1.tar.gz
| Download URL | drace-2.3.1.tar.gz |
|---|---|
| Size | 119.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bf291db23dd4c1dfa7c8bf24b8a888061a808e5aeca6e2980cf640999ef8c2c3
|
|
BLAKE2b-256 checksum How to use checksums |
4adf7d88ce2411152bf491d5ae8ae9a8a07dbedac7741001cc1d4c62e12faa03
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 4, 2026.
Transparency logRelease files / drace-2.3.1-py3-none-any.whl
| Download URL | drace-2.3.1-py3-none-any.whl |
|---|---|
| Size | 132.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a600bff6c77d28f7714e8406f4da66b20b69a2ee24acf6780c173ff8fdf40c7b
|
|
BLAKE2b-256 checksum How to use checksums |
898bee147e9eb2a92809db7e9683084fadcd6e6a793458a0194161744daed204
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 4, 2026.
Transparency logSecurity for drace 2.3.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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for drace-2.3.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 May 4, 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.