Skip to content

Commit 70f2681

Browse files
committed
add black to pre-commit
1 parent 16c5c6e commit 70f2681

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
repos:
2+
- repo: https://github.com/psf/black
3+
rev: 20.8b1 # Replace by any tag/version: https://github.com/psf/black/tags
4+
hooks:
5+
- id: black
6+
language_version: python3 # Should be a command that runs python3.6+

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ cd jupyterlab-git
123123
124124
# Install the server extension in development mode and enable it
125125
pip install -e .[test]
126+
pre-commit install
126127
jupyter serverextension enable --py jupyterlab_git --sys-prefix
127128
128129
# Build and install your development version of the extension

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ def runPackLabextension():
8888
"pytest-asyncio",
8989
"jupyterlab~=2.0",
9090
"black",
91+
"pre-commit",
9192
],
9293
},
9394
)

0 commit comments

Comments
 (0)