Skip to content

Commit ce152fa

Browse files
authored
upgrade nbqa, add config options for black (#4135)
1 parent a29da31 commit ce152fa

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

.nbqa.ini

Lines changed: 0 additions & 4 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ repos:
33
rev: v3.2.0
44
hooks:
55
- id: end-of-file-fixer
6+
- id: check-toml
67
- repo: https://github.com/nbQA-dev/nbQA
7-
rev: 0.1.29
8+
rev: 0.2.0
89
hooks:
910
- id: nbqa
1011
args: ['isort']

pyproject.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,16 @@
11
[tool.black]
22
line-length = 100
3+
4+
[tool.nbqa.config]
5+
isort = "setup.cfg"
6+
black = "pyproject.toml"
7+
8+
[tool.nbqa.mutate]
9+
isort = 1
10+
black = 1
11+
12+
[tool.nbqa.addopts]
13+
isort = ["--treat-comment-as-code", "# %%"]
14+
15+
[tool.nbqa.ignore_cells]
16+
black = "%%cython"

0 commit comments

Comments
 (0)