Skip to content

Commit

Permalink
Enable Black - Python Auto Formmatter
Browse files Browse the repository at this point in the history
  • Loading branch information
kaxil committed Jul 11, 2020
1 parent 861e5e7 commit 715ba75
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ repos:
- repo: meta
hooks:
- id: check-hooks-apply
- repo: https://github.com/psf/black
rev: stable
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.1.0
hooks:
Expand Down
21 changes: 21 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[tool.black]
line-length = 110
target-version = ['py36', 'py37', 'py38']
skip-string-normalization = true
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.build
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| logs
)/
'''

0 comments on commit 715ba75

Please sign in to comment.