Skip to content

Commit dd546cd

Browse files
committed
add black formatting check to tests
1 parent f922e2e commit dd546cd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,17 @@ jobs:
5858
- name: Install dependencies
5959
run: |
6060
pip install wheel
61-
pip install --upgrade --upgrade-strategy=eager pytest pytest-asyncio "jupyterlab~=2.0"
61+
pip install --upgrade --upgrade-strategy=eager pytest pytest-asyncio "jupyterlab~=2.0" black
6262
6363
- name: Test the extension
6464
run: |
6565
# Build the sdist (identical to what will be uploaded to eg pypi on release)
6666
python setup.py sdist
6767
# Linter checks
6868
jlpm run eslint-check
69+
70+
# Python formatting checks
71+
black . --check
6972
7073
# Install the extension from the sdist ensuring the cache is unused
7174
pip install jupyterlab_git[test] --pre --no-index --find-links=dist --no-deps --no-cache-dir -v

0 commit comments

Comments
 (0)