The uncompromising code formatter.
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file blackadder-0.1.1.tar.gz
.
File metadata
- Download URL: blackadder-0.1.1.tar.gz
- Upload date:
- Size: 15.0 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 089486188add7a01dcd77a16a697d7c075c76279073a6dccf0b7ce689f8c61c5 |
|
MD5 | 00779b9fa6dc54e54c0be8560e59d60e |
|
BLAKE2b-256 | 3ff989320f50baf5eb78555e4c7738f196102ce58f8bb9e84ae0c8b7bae74372 |
File details
Details for the file blackadder-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: blackadder-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ede1694ae03b86968255376966223b33387b89c1aab697f39851347170f742f0 |
|
MD5 | a54efd0d899627b2ed82aaa3c94a2126 |
|
BLAKE2b-256 | 4513978cd904eadc7cdc5efe80baf61bd24dc2e846c4f410fddfddab16228e40 |