Skip to main content

The slightly more compromising code formatter.

Project description

Lavender

PyPI

A slightly more compromising Python code formatter, based on the latest stable release of Black.

Differences from Black

  • The default line length is 99 instead of 88 (configurable with --line-length).
  • Single quoted strings are preferred (configurable with --string-normalization none/single/double).
  • Empty lines between classes and defs are trated no differently from other code. The old behavior, which sometimes inserts double empty lines between them, remains available via --special-case-def-empty-lines.

Documentation

Read up on Black, but replace black with lavender in your head.

License

Lavender is Copyright (c) 2019 Michael Smith <michael@spinda.net>

Black, the software on which it was based, is Copyright (c) 2018 Łukasz Langa

This program is free software: you can redistribute it and/or modify it under the terms of the MIT License.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MIT License for more details.

You should have received a copy of the MIT License along with this program. If not, see http://opensource.org/licenses/MIT.

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

lavender-0.1.0.tar.gz (73.2 kB view hashes)

Uploaded Source

Built Distribution

lavender-0.1.0-py3-none-any.whl (81.2 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