Eliminate Newlines CLI
This CLI formats Python code in such a way that after the function definition header all newlines will be deleted.
Example
def foo(a):
return a + 1
class A:
def bar(self,
b,
c):
return b + c
will be formatted to:
def foo(a):
return a + 1
class A:
def bar(self,
b,
c):
return a + b + c
Example usage:
Reformat file:
eliminate_newlines testfile.py
Reformat folder (recursively):
eliminate_newlines /path/to/testfolder
Check mode:
eliminate_newlines testfile.py --check
Return Codes
Return code 0 means nothing would change.
Return code 1 means some files would be reformatted.
Return code 123 means there was an internal error.
CLI Documentation:
eliminate_newlines --help
Usage: eliminate_newlines [OPTIONS] PATH
This CLI formats Python code in such a way that after the function
definition header all newlines will be deleted.
Return code 0 means nothing would change. Return code 1 means some files
would be reformatted. Return code 123 means there was an internal error.""
pass.
Passed PATHS can be either filea or directories. In the latter case, all
files in the folders will be formatted recursively.
Options:
--check Don't write the files back, just return the status.
--help Show this message and exit.
Metadata
Release files for eliminate-newlines 1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| eliminate-newlines-1.2.tar.gz | 3.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| eliminate_newlines-1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.4 kB
Release files / eliminate-newlines-1.2.tar.gz
| Download URL | eliminate-newlines-1.2.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6a858e94f29057d5077dd78a28e2747eedff77f6b41cee982cedd13c88a811d0
|
|
BLAKE2b-256 checksum How to use checksums |
05d449efb129197d92fbb31b512562bd5d3dfdfbe07110a66c1ea40983a0601f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5
|
Release files / eliminate_newlines-1.2-py3-none-any.whl
| Download URL | eliminate_newlines-1.2-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
27d2991cd6a5477b10817e14eb344937277ec62dffae2a18b194a20f403768c8
|
|
BLAKE2b-256 checksum How to use checksums |
3b9441a6ffcb2c57848ada90a4f6e2715ff1250e2f2078f75eabe076fd6898f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5
|