Skip to main content

The uncompromising code formatter.

Project description

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.

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

blackadder-0.1.1.tar.gz (15.0 kB view hashes)

Uploaded Source

Built Distribution

blackadder-0.1.1-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

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