Skip to content

Commit 14b0f09

Browse files
committed
Add lint workflow
1 parent e240507 commit 14b0f09

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

.github/workflows/lint.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Lint
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
- name: Install Python
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: '3.8'
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
python -m pip install black
23+
- name: Lint Python
24+
run: |
25+
black --check .

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
install_requires=["notebook>=5.6.0", "prometheus_client"],
2727
extras_require={
2828
"resources": ["psutil>=5.6.0"],
29-
"dev": ["autopep8", "pytest", "flake8", "pytest-cov>=2.6.1", "mock"],
29+
"dev": ["autopep8", "black", "pytest", "flake8", "pytest-cov>=2.6.1", "mock"],
3030
},
3131
data_files=[
3232
("share/jupyter/nbextensions/nbresuse", glob("nbresuse/static/*")),

0 commit comments

Comments
 (0)