diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ddc94f86..9d3580ed 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,11 +66,13 @@ repos: - id: rst-inline-touching-normal - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.3 + 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 24e543a9..38ea8b70 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -107,7 +107,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" @@ -167,7 +170,6 @@ warn_return_any = false warn_unreachable = true [tool.ruff] -target-version = "py38" line-length = 100 [tool.ruff.lint]