Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add pre-commit as a dependency. Add pre-commit config to use black. M…
…ake black only install on py3.6+
  • Loading branch information
Thetwam committed Jul 1, 2019
1 parent 75db8ae commit 5b31287
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
@@ -0,0 +1,6 @@
repos:
- repo: https://github.com/ambv/black
rev: stable
hooks:
- id: black
language_version: python3.7
1 change: 1 addition & 0 deletions dev_requirements.txt
@@ -1,5 +1,6 @@
-r tests_requirements.txt

pre-commit; python_version < '3.6'
Sphinx
sphinx-rtd-theme
svn+https://svn.code.sf.net/p/docutils/code/trunk/docutils#egg=docutils
2 changes: 1 addition & 1 deletion tests_requirements.txt
@@ -1,6 +1,6 @@
-r requirements.txt

black
black; python_version < '3.6'
coverage
flake8
requests-mock

0 comments on commit 5b31287

Please sign in to comment.