Skip to main content

black-adder

A code formatter for vyper.

Usage

To run it manually, first install using pip:

pip install blackadder

Then run the following in you terminal:

blackadder --fast --include '\.vy$' .

You can also use pre-commit hooks: put this in your repo's .pre-commit-config.yaml and add Python's pre-commit to your test requirements.

repos:
-   repo: https://github.com/spinoch/blackadder
    rev: "master"
    hooks:
    - id: blackadder
      language_version: python3

Warning

This is still in an experimental state. Formatting may be done incorrectly for log keywords if the next variable name is less than 3 characters long. If you run into issues, check out the logs to see what happens.

As of now, blackadder will fail if invoked without --fast. In general, black options shouldn't be expected to work except for --diff and --include.

Metadata

Release files for blackadder 0.1.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 blackadder 0.1.1
File Size Uploaded
blackadder-0.1.1.tar.gz 15.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for blackadder 0.1.1
File Interpreter ABI Platform
blackadder-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 19.8 kB

Release files / blackadder-0.1.1.tar.gz

Download URL blackadder-0.1.1.tar.gz
Size 15.0 kB
Tags Source
SHA-256 checksum
How to use checksums
089486188add7a01dcd77a16a697d7c075c76279073a6dccf0b7ce689f8c61c5
BLAKE2b-256 checksum
How to use checksums
3ff989320f50baf5eb78555e4c7738f196102ce58f8bb9e84ae0c8b7bae74372
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

Release files / blackadder-0.1.1-py3-none-any.whl

Download URL blackadder-0.1.1-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ede1694ae03b86968255376966223b33387b89c1aab697f39851347170f742f0
BLAKE2b-256 checksum
How to use checksums
4513978cd904eadc7cdc5efe80baf61bd24dc2e846c4f410fddfddab16228e40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

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