Skip to content

Commit

Permalink
Expose more attributes for typing (#337)
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 authored Dec 18, 2022
1 parent 73a10a5 commit 45ff0cd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ repos:
- id: black

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.180
rev: v0.0.185
hooks:
- id: ruff
args: ["--fix"]
1 change: 1 addition & 0 deletions nbformat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"write",
"version_info",
"__version__",
"Sentinel",
]

versions = {
Expand Down
1 change: 1 addition & 0 deletions nbformat/v4/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"nbformat_schema",
"new_code_cell",
"new_markdown_cell",
"new_raw_cell",
"new_notebook",
"new_output",
"output_from_msg",
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ dependencies = ["mypy>=0.990"]
test = "mypy --install-types --non-interactive {args:nbformat tests}"

[tool.hatch.envs.lint]
dependencies = ["black[jupyter]==22.10.0", "mdformat>0.7", "ruff==0.0.180"]
dependencies = ["black[jupyter]==22.10.0", "mdformat>0.7", "ruff==0.0.185"]
detached = true
[tool.hatch.envs.lint.scripts]
style = [
Expand Down Expand Up @@ -150,11 +150,11 @@ ignore_missing_imports = true
[tool.black]
line-length = 100
skip-string-normalization = true
target-version = ["py38"]
target-version = ["py37"]
extend-exclude = "^/tests.*ipynb$"

[tool.ruff]
target-version = "py38"
target-version = "py37"
line-length = 100
select = [
"A", "B", "C", "E", "F", "FBT", "I", "N", "Q", "RUF", "S", "T",
Expand Down

0 comments on commit 45ff0cd

Please sign in to comment.