From cad58f18f05f428c179153b1559e561fb4965dc4 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 5 Sep 2023 05:24:52 -0500 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#85) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/python-jsonschema/check-jsonschema: 0.23.3 → 0.26.3](https://github.com/python-jsonschema/check-jsonschema/compare/0.23.3...0.26.3) - [github.com/executablebooks/mdformat: 0.7.16 → 0.7.17](https://github.com/executablebooks/mdformat/compare/0.7.16...0.7.17) - [github.com/astral-sh/ruff-pre-commit: v0.0.281 → v0.0.287](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.281...v0.0.287) * sync deps and lint --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Steven Silvester --- .pre-commit-config.yaml | 6 +++--- jupyter_events/traits.py | 2 +- pyproject.toml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 77e547a..b365818 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,12 +20,12 @@ repos: - id: trailing-whitespace - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.23.3 + rev: 0.26.3 hooks: - id: check-github-workflows - repo: https://github.com/executablebooks/mdformat - rev: 0.7.16 + rev: 0.7.17 hooks: - id: mdformat @@ -35,7 +35,7 @@ repos: - id: black - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.0.281 + rev: v0.0.287 hooks: - id: ruff args: ["--fix"] diff --git a/jupyter_events/traits.py b/jupyter_events/traits.py index 6a6a318..a0afe79 100644 --- a/jupyter_events/traits.py +++ b/jupyter_events/traits.py @@ -37,7 +37,7 @@ def validate(self, obj, value): return out # If a list, check it's elements to verify # that each element is a logging handler instance. - elif type(value) == list: + elif isinstance(value, list): self.validate_elements(obj, value) return value else: diff --git a/pyproject.toml b/pyproject.toml index db5400f..dc562d3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -99,7 +99,7 @@ dependencies = ["mypy>=0.990"] test = "mypy --install-types --non-interactive {args:.}" [tool.hatch.envs.lint] -dependencies = ["black[jupyter]==23.3.0", "mdformat>0.7", "ruff==0.0.281"] +dependencies = ["black[jupyter]==23.3.0", "mdformat>0.7", "ruff==0.0.287"] detached = true [tool.hatch.envs.lint.scripts] style = [