Skip to content

Commit

Permalink
Use pre-commit framework
Browse files Browse the repository at this point in the history
  • Loading branch information
yi-jiayu committed May 20, 2019
1 parent 6dcd3aa commit bbca009
Show file tree
Hide file tree
Showing 5 changed files with 144 additions and 63 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/python/black
rev: stable
hooks:
- id: black
language_version: python3.7
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ docs:
$(MAKE) -C docs html

hooks:
cp -f pre-commit .git/hooks/
pipenv run pre-commit install
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ sphinx-rtd-theme = "*"
sphinx-autodoc-typehints = "*"
twine = "*"
black = "*"
pre-commit = "*"

[packages]
zeep = "*"
Expand Down
195 changes: 136 additions & 59 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions pre-commit

This file was deleted.

0 comments on commit bbca009

Please sign in to comment.