Loader of Black to ensure Athenian's code formatting conventions.
Project description
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
chorny-1.6.1.tar.gz
(3.5 kB
view details)
File details
Details for the file chorny-1.6.1.tar.gz
.
File metadata
- Download URL: chorny-1.6.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d2f92a87d6b8498c85a141f905ef632b169a4da920d918d739fa6ed638c4739 |
|
MD5 | 98b14e517d3a2ac0b21bbcc6d0af518c |
|
BLAKE2b-256 | 40eeb3ee627a914b74368d2d7bd879999133cbc188f0d8b14c939320696cbefe |