Skip to content

Commit 122fca2

Browse files
authored
MAINT: Update nbqa hook and github workflow (#116)
1 parent 4a5dedb commit 122fca2

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/notebooks.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,12 @@ jobs:
3737
3838
- name: Install dependencies
3939
run: |
40-
pip install pip==21.1.1
40+
pip install -U pip
4141
pip install -r requirements.txt
4242
4343
- name: Lint with precommit
4444
run: |
4545
pip install pre-commit
46-
find content/ -name "*.md" -exec jupytext --to notebook {} \;
47-
# pre-commit wants files to be staged
48-
git add content/
4946
pre-commit run --all-files --show-diff-on-failure --color always
5047
5148
- name: Test with nbval

.pre-commit-config.yaml

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
repos:
22
- repo: https://github.com/nbQA-dev/nbQA
3-
rev: 1.3.1
3+
rev: 1.7.0
44
hooks:
5-
- id: nbqa-black
65
- id: nbqa-pyupgrade
7-
args: [--py38-plus]
6+
additional_dependencies: [jupytext]
7+
args: [--py311-plus, --nbqa-shell]
8+
- id: nbqa-black
9+
additional_dependencies: [jupytext]
10+
args: [--nbqa-shell]

0 commit comments

Comments
 (0)