Skip to content

Commit 45ff0cd

Browse files
authored
Expose more attributes for typing (#337)
1 parent 73a10a5 commit 45ff0cd

4 files changed

Lines changed: 6 additions & 4 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ repos:
3434
- id: black
3535

3636
- repo: https://github.com/charliermarsh/ruff-pre-commit
37-
rev: v0.0.180
37+
rev: v0.0.185
3838
hooks:
3939
- id: ruff
4040
args: ["--fix"]

nbformat/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"write",
3030
"version_info",
3131
"__version__",
32+
"Sentinel",
3233
]
3334

3435
versions = {

nbformat/v4/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"nbformat_schema",
1010
"new_code_cell",
1111
"new_markdown_cell",
12+
"new_raw_cell",
1213
"new_notebook",
1314
"new_output",
1415
"output_from_msg",

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ dependencies = ["mypy>=0.990"]
8686
test = "mypy --install-types --non-interactive {args:nbformat tests}"
8787

8888
[tool.hatch.envs.lint]
89-
dependencies = ["black[jupyter]==22.10.0", "mdformat>0.7", "ruff==0.0.180"]
89+
dependencies = ["black[jupyter]==22.10.0", "mdformat>0.7", "ruff==0.0.185"]
9090
detached = true
9191
[tool.hatch.envs.lint.scripts]
9292
style = [
@@ -150,11 +150,11 @@ ignore_missing_imports = true
150150
[tool.black]
151151
line-length = 100
152152
skip-string-normalization = true
153-
target-version = ["py38"]
153+
target-version = ["py37"]
154154
extend-exclude = "^/tests.*ipynb$"
155155

156156
[tool.ruff]
157-
target-version = "py38"
157+
target-version = "py37"
158158
line-length = 100
159159
select = [
160160
"A", "B", "C", "E", "F", "FBT", "I", "N", "Q", "RUF", "S", "T",

0 commit comments

Comments
 (0)