From 9d554f615eb07c2371fb562e343674a0e203c506 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 5 Dec 2023 09:48:36 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .cspell.json | 1 + .pre-commit-config.yaml | 33 +++++++++++++-------------------- pyproject.toml | 17 +++++++++++++++++ 3 files changed, 31 insertions(+), 20 deletions(-) diff --git a/.cspell.json b/.cspell.json index acccb6e..d20e61e 100644 --- a/.cspell.json +++ b/.cspell.json @@ -13,6 +13,7 @@ "transisions" ], "ignorePaths": [ + "**/*.rst_t", "**/.cspell.json", ".constraints/*.txt", ".editorconfig", diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 94551e6..25c6e67 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,6 +13,17 @@ repos: - id: check-hooks-apply - id: check-useless-excludes + - repo: https://github.com/ComPWA/repo-maintenance + rev: 0.1.7 + hooks: + - id: check-dev-files + args: + - --no-prettierrc + - --pin-requirements=bimonthly + - --repo-name=PawianTools + - --repo-title=Pawian Tools + - id: format-setup-cfg + - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.5.0 hooks: @@ -31,17 +42,6 @@ repos: args: ["--django"] - id: trailing-whitespace - - repo: https://github.com/ComPWA/repo-maintenance - rev: 0.1.7 - hooks: - - id: check-dev-files - args: - - --no-prettierrc - - --pin-requirements=bimonthly - - --repo-name=PawianTools - - --repo-title=Pawian Tools - - id: format-setup-cfg - - repo: https://github.com/psf/black-pre-commit-mirror rev: 23.11.0 hooks: @@ -113,19 +113,12 @@ repos: hooks: - id: pyright - - repo: https://github.com/asottile/pyupgrade - rev: v3.15.0 - hooks: - - id: pyupgrade - args: - - --py36-plus - - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.1.7 hooks: - id: ruff - args: - - --fix + args: [--fix] + types_or: [python, pyi, jupyter] - repo: https://github.com/ComPWA/mirrors-taplo rev: v0.8.1 diff --git a/pyproject.toml b/pyproject.toml index ba67a54..a8a4237 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -124,6 +124,7 @@ testpaths = [ ] [tool.ruff] +extend-include = ["*.ipynb"] extend-select = [ "A", "B", @@ -178,6 +179,22 @@ target-version = "py37" task-tags = ["cspell"] [tool.ruff.per-file-ignores] +"*.ipynb" = [ + "B018", + "C90", + "D", + "E402", + "E703", + "N806", + "N816", + "PLR09", + "PLR2004", + "PLW0602", + "PLW0603", + "S101", + "T201", + "TCH00", +] "docs/*" = [ "E402", "INP001",