Skip to main content

chorny

Chorny (russian: чёрный) is a loader of Black that patches code on the fly to change the formatting to satisfy Athenian's conventions.

So far, the only difference with the original rules is how magic trailing commas work. Chorny prevents new line expansion by the magic trailing comma for parentheses unless the code is a function signature. Example:

async def foo(self, arg, other,):
    pass

becomes

async def foo(
    self,
    arg,
    other,
):
    pass

However,

foo(
    1, "one,
)

stays intact.

Installation

pip install chorny

Usage

chorny patches and launches black and should be used the same way.

License

MIT, see LICENSE.

Metadata

Release files for chorny 1.6.1

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

Source distribution (sdist)

Source distribution for chorny 1.6.1
File Size Uploaded Provenance Actions
chorny-1.6.1.tar.gz 3.5 kB Without provenance Details for chorny-1.6.1.tar.gz

Release files / chorny-1.6.1.tar.gz

Download URL chorny-1.6.1.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6d2f92a87d6b8498c85a141f905ef632b169a4da920d918d739fa6ed638c4739
BLAKE2b-256 checksum
How to use checksums
40eeb3ee627a914b74368d2d7bd879999133cbc188f0d8b14c939320696cbefe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.15

Security for chorny 1.6.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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