Skip to main content

Less uncompromising Python code formatter

Project description

gray

Less uncompromising Python code formatter

Usage

usage:
        gray myapp.py
        gray myproj/ tests/
        gray --log-level debug --formatters isort,unify ~/app

Less uncompromising Python code formatter. Args that start with '--' (eg.
--log-level) can also be set in a config file (~/.gray or
/etc/gray.conf or ./gray.conf). Config file syntax allows: key=value,
flag=true, stuff=[a,b,c] (for details, see syntax at https://goo.gl/R74nmi).
If an arg is specified in more than one place, then commandline values
override config file values which override defaults.

positional arguments:
  paths                 Paths to format

optional arguments:
  -h, --help            show this help message and exit

Logging options:
  --log-level {debug,info,warning,error,fatal}
  --log-format {stream,color,json,syslog}

Formatters options:
  -f FORMATTERS, --formatters FORMATTERS
                        Enabled formatters separated by comma (default: add-
                        trailing-comma,isort,pyupgrade,unify)

Features

  • TODO

History

0.1.0 (2020-04-06)

  • First release on PyPI.

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

gray-0.1.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

gray-0.1.0-py2.py3-none-any.whl (8.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file gray-0.1.0.tar.gz.

File metadata

  • Download URL: gray-0.1.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.6

File hashes

Hashes for gray-0.1.0.tar.gz
Algorithm Hash digest
SHA256 22bb7030292ba7f6d0480d07a932b955d70e42cff726f8a16f3cacb247f87934
MD5 59f0155be1ee83481f057c1d14077826
BLAKE2b-256 ead857a8e35411b1dd4c609003f3bc2dced952ba37c7b5ead294a991615af9ce

See more details on using hashes here.

File details

Details for the file gray-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: gray-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.6

File hashes

Hashes for gray-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 76fb639bfbb2686a92f549c7975aacd73fa82b9797fb4761fb9cb4ae1c997985
MD5 1020e3599aa6b3103ecfbb087ca7e9f6
BLAKE2b-256 74ae7870b40cc47a62e3e9b0d68ad7f40c461a044667f83dfc5008baf58d3308

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page