Google/Excel Sheets API Python.
Project description
brunette
This is the black formatter but with some improvements:
--config
option supportssetup.cfg
format.- Adds
single-quotes
option to enable single quotes as the preferred.
Installation
pip install brunette
Usage
Use in the same way you would the 'black' formatter.
brunette *.py --config=setup.cfg
Example setup.cfg
:
[tool:brunette]
line-length = 79
verbose = true
single-quotes = false
How to configure in VSCode
- In your terminal type
which brunette
to get the full path to your brunette installation.
In my case this looks like /home/work/.pyenv/shims/brunette
. Now copy whatever that value is.
-
Open the setttings UI.
-
Search for black.
- Paste that path into "Black Path".
- Set black as the Python Formatting Provider.
- That's it! Now whenever you format your Python code](https://stackoverflow.com/a/48764668/13405802) brunette will be used.
Why does this need to exist?
-
The current maintainer of black, refuses to allow a single-quotes option. Due to his own personal preference (a preference which most of the Python community do not share).
-
The current maintainer of black, refuses to add setup.cfg support. Setup.cfg is the most widely used configuration file for Python projects. The maintainer of that library prefers "project.tolm" few people use at this time due to it's inflexibility and it requiring you to use Peotry, whatever that is.
Release History
0.1.5 (2020-06-18)
- Documentation updates.
0.1.4 (2020-06-16)
- Handle when setup.cfg is missing.
0.1.3 (2020-06-16)
- Handle when setup.cfg is missing.
0.1.2 (2020-06-16)
- Added
__main__
for CLI exec.
0.1.1 (2020-06-15)
- Adds wheels.
0.1.0 (2020-06-15)
- Initial release.
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
Hashes for brunette-0.1.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf17a5aaf2e079e70e7f2798d355b4e48b3ef3cf1edd5bf67f2b14cd8ca00fac |
|
MD5 | 3aaa5e1b6f1709e1c4c0fc29119f462e |
|
BLAKE2b-256 | 62d4e42020f14464029c16ee25b8da6bedc81edd56a4508660afb124075e9749 |