From 31c34bd1c2f1d7d30878247c65e2634cc34c711e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Nov 2023 20:33:01 +0000 Subject: [PATCH 1/3] chore: update pre-commit hooks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/python-jsonschema/check-jsonschema: 0.27.0 → 0.27.1](https://github.com/python-jsonschema/check-jsonschema/compare/0.27.0...0.27.1) - [github.com/astral-sh/ruff-pre-commit: v0.1.3 → v0.1.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.3...v0.1.4) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 04aea43..67a6862 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,7 +21,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.27.0 + rev: 0.27.1 hooks: - id: check-github-workflows @@ -66,7 +66,7 @@ repos: additional_dependencies: ["traitlets>=5.13"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.3 + rev: v0.1.4 hooks: - id: ruff args: ["--fix", "--show-fixes"] From 8538ca43c88416dbf16b9570bed6ead9dc7a3884 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Thu, 9 Nov 2023 12:33:50 -0600 Subject: [PATCH 2/3] update ruff --- .pre-commit-config.yaml | 4 +++- pyproject.toml | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 67a6862..8107dad 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -66,11 +66,13 @@ repos: additional_dependencies: ["traitlets>=5.13"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.4 + rev: v0.1.5 hooks: - id: ruff + types_or: [ python, jupyter ] args: ["--fix", "--show-fixes"] - id: ruff-format + types_or: [ python, jupyter ] - repo: https://github.com/scientific-python/cookie rev: "2023.10.27" diff --git a/pyproject.toml b/pyproject.toml index 616870f..3351598 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -59,7 +59,10 @@ test = "pre-commit run --all-files --hook-stage manual mypy" dependencies = ["pre-commit"] detached = true [tool.hatch.envs.lint.scripts] -build = ["pre-commit run --all-files ruff"] +build = [ + "pre-commit run --all-files ruff", + "pre-commit run --all-files ruff-format" +] [tool.pytest.ini_options] minversion = "6.0" @@ -81,7 +84,6 @@ enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"] warn_unreachable = true [tool.ruff] -target-version = "py38" line-length = 100 [tool.ruff.lint] From 5cb9d704e8ced9c261b31d12b7710cccbd57cb25 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 9 Nov 2023 18:34:05 +0000 Subject: [PATCH 3/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8107dad..63252fc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -69,10 +69,10 @@ repos: rev: v0.1.5 hooks: - id: ruff - types_or: [ python, jupyter ] + types_or: [python, jupyter] args: ["--fix", "--show-fixes"] - id: ruff-format - types_or: [ python, jupyter ] + types_or: [python, jupyter] - repo: https://github.com/scientific-python/cookie rev: "2023.10.27"