Skip to content

Commit

Permalink
dvc: add black configuration and git hook
Browse files Browse the repository at this point in the history
Signed-off-by: Ruslan Kuprieiev <ruslan@iterative.ai>
  • Loading branch information
efiop committed Jan 31, 2019
1 parent 0c168b2 commit f78c5bd
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
repos:
- repo: https://github.com/ambv/black
rev: stable
hooks:
- id: black
language_version: python3.6
18 changes: 18 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[tool.black]
line-length = 88
py36 = true
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''

0 comments on commit f78c5bd

Please sign in to comment.