Skip to content

Commit

Permalink
add black to pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhi committed Sep 5, 2020
1 parent 16c5c6e commit 70f2681
Show file tree
Hide file tree
Showing 3 changed files with 8 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/psf/black
rev: 20.8b1 # Replace by any tag/version: https://github.com/psf/black/tags
hooks:
- id: black
language_version: python3 # Should be a command that runs python3.6+
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ cd jupyterlab-git
# Install the server extension in development mode and enable it
pip install -e .[test]
pre-commit install
jupyter serverextension enable --py jupyterlab_git --sys-prefix
# Build and install your development version of the extension
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ def runPackLabextension():
"pytest-asyncio",
"jupyterlab~=2.0",
"black",
"pre-commit",
],
},
)
Expand Down

0 comments on commit 70f2681

Please sign in to comment.