From bb9f350a6093384ef30eb00c5b4ab3b95550a035 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Thu, 9 Nov 2023 07:11:17 -0600 Subject: [PATCH] Clean up ruff config (#1165) --- .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 5ae0cdcb..3fefcf03 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -74,11 +74,13 @@ repos: - id: rst-inline-touching-normal - 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 db15f6a1..1e5c71a8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -120,7 +120,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.mypy] files = "ipykernel" @@ -205,7 +208,6 @@ omit = [ ] [tool.ruff] -target-version = "py38" line-length = 100 [tool.ruff.lint]