Skip to content

Commit

Permalink
precommit: Black
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Nov 9, 2021
1 parent 79bca2b commit 3d0dab7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,11 @@ repos:
- id: isort
name: Sort imports

# TODO
#- repo: https://github.com/pre-commit/mirrors-yapf
# rev: v0.31.0
# hooks:
# - id: yapf
# name: formatting
- repo: https://github.com/psf/black
rev: 21.7b0
hooks:
- id: black
name: Black code

# TODO
#- repo: https://github.com/executablebooks/mdformat
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[tool.black]
# https://github.com/psf/black
line-length = 120
exclude = "(.eggs|.git|.hg|.mypy_cache|.venv|_build|buck-out|build|dist)"
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ ignore =
F403
E302
F541
W503
E203


[isort]
Expand Down

0 comments on commit 3d0dab7

Please sign in to comment.