Skip to main content

black command for setuptools

Project description

Custom setuptools command for black formatting tool (see https://github.com/ambv/black).

This package enforces code formatting validation using black at build time, by overriding the build_py setup command. Build will fail if there's any formatting error.

In your setup.py:

...
setuptools.setup(
...
    setup_requires=["setuptools-black"],
...
)

It also adds the format command to setuptools, which uses black to reformat code:

> python setup.py format
running format
All done!  🍰 5 files left unchanged

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

setuptools-black-0.1.1.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

setuptools_black-0.1.1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file setuptools-black-0.1.1.tar.gz.

File metadata

  • Download URL: setuptools-black-0.1.1.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for setuptools-black-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ab82c5dff9ef7b8600f31729014143f79b9a223813711024fadfa55fee440aca
MD5 45230a161f7d4a4d19159dcc76ead808
BLAKE2b-256 f6077ef3355a639b551e2fb72987a8fe0d36b0fb730dd7ecf8f5abbb22693668

See more details on using hashes here.

Provenance

File details

Details for the file setuptools_black-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: setuptools_black-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for setuptools_black-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c81c0727636badcc61046fd901bdb17d7d629b0f9accba675dd6a6d791607a90
MD5 44426db77bf736b1f37ea013e0850e30
BLAKE2b-256 a394e642bbf1c22be6ecf92f3d8e79bbe0b2a59a28958fd6720c23f66a004277

See more details on using hashes here.

Provenance

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