From 4070c9b5b430a66c4a17a5507b73a80b76cac079 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Sun, 18 Dec 2022 10:25:29 -0600 Subject: [PATCH] expose more attributes for typing --- .pre-commit-config.yaml | 2 +- nbformat/__init__.py | 1 + nbformat/v4/__init__.py | 1 + pyproject.toml | 6 +++--- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f546c700..570f0cad 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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"] diff --git a/nbformat/__init__.py b/nbformat/__init__.py index 12f7a6f4..bf32f8bd 100644 --- a/nbformat/__init__.py +++ b/nbformat/__init__.py @@ -29,6 +29,7 @@ "write", "version_info", "__version__", + "Sentinel", ] versions = { diff --git a/nbformat/v4/__init__.py b/nbformat/v4/__init__.py index 31b533ef..73ba0e0f 100644 --- a/nbformat/v4/__init__.py +++ b/nbformat/v4/__init__.py @@ -9,6 +9,7 @@ "nbformat_schema", "new_code_cell", "new_markdown_cell", + "new_raw_cell", "new_notebook", "new_output", "output_from_msg", diff --git a/pyproject.toml b/pyproject.toml index c40a90ed..e30d1565 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 = [ @@ -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",