Skip to content

Commit

Permalink
Use black style and other pre-commit hooks.
Browse files Browse the repository at this point in the history
Plugins added:
black
trailing-whitespace
end-of-file-fixer
check-yaml
  • Loading branch information
youtux committed Aug 23, 2019
1 parent 386ed90 commit 61c5489
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/psf/black
rev: 19.3b0
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[tool.black]
line-length = 120
target-version = ['py27', 'py35', 'py36', 'py37', 'py38']

0 comments on commit 61c5489

Please sign in to comment.