Prepare for Black autoformatting: dependencies, string staging, single-quote string override

This commit is contained in:
Josh Klar
2019-07-24 22:56:10 -07:00
parent 8100b91dbc
commit 5c0c13e8d0
15 changed files with 159 additions and 60 deletions

22
pyproject.toml Normal file
View File

@@ -0,0 +1,22 @@
[tool.black]
# since black refuses to allow single-quotes... see locked conversation at
# https://github.com/psf/black/issues/594
skip-string-normalization = true
target = "py36"
# explicitly exculde user_keymaps from black formatting rules
# because a visually-appealing keymap list will be flattened
# by black into a much harder to understand format
exclude = '''
/(
\.git
| \.mypy_cache
| \.tox
| \.venv
| \.pytest_cache
| \.compiled
| dist
| build
| docs
| user_keymaps
)/
'''