The slightly more compromising code formatter.
Differences from Black
- The default line length is 99 instead of 88 (configurable with
- Single quoted strings are preferred (configurable with
- Empty lines between
defs are treated no differently from other code. The old behavior, which sometimes inserts double empty lines between them, remains available via
- The Vim plugin configuration variable for line length is named
g:lavender_linelength, for consistency with the other configuration variable names.
Read up on Black, but replace
lavender in your
Poetry is recommended for managing Python development tooling.
To initialize an isolated Python development environment for Lavender:
Code formatting for Python is handled by Lavender itself.
To check that the code is correctly formatted:
poetry run lavender --check .
To auto-format the code:
poetry run lavender .
Type checking for Python is handled by mypy.
To check that the code is correctly typed:
poetry run mypy .
Lavender is Copyright (c) 2019-2021 Michael Smith <email@example.com>
Black, the software on which it was based, is Copyright (c) 2018-2020 Ł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.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this work by you shall be licensed as above, without any additional terms or conditions.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size lavender-0.2.1-py3-none-any.whl (108.2 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size lavender-0.2.1.tar.gz (102.8 kB)||File type Source||Python version None||Upload date||Hashes View|