Skip to content

Commit b34d8ec

Browse files
committed
Added black to pre-commit and added pyproject.toml for black config
1 parent b0134ea commit b34d8ec

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,8 @@ repos:
1010
- id: debug-statements
1111
- id: fix-encoding-pragma
1212
args: [--remove]
13+
- repo: https://github.com/python/black
14+
rev: 19.10b0
15+
hooks:
16+
- id: black
17+
language_version: python3

pyproject.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[tool.black]
2+
line-length = 99
3+
target-version = ['py36', 'py37', 'py38']
4+
exclude = '''
5+
/(
6+
\.eggs
7+
| \.git
8+
| \.hg
9+
| \.mypy_cache
10+
| \.tox
11+
| \.venv
12+
| _build
13+
| buck-out
14+
| build
15+
| dist
16+
)/
17+
'''

0 commit comments

Comments
 (0)