From f3603c6cdcff80b580b81ad0a7bec67c4e87a687 Mon Sep 17 00:00:00 2001 From: "scitools-ci[bot]" <107775138+scitools-ci[bot]@users.noreply.github.com> Date: Wed, 1 May 2024 02:15:47 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=81=20TEMPLATE=20DEVIATIONS:=20synced?= =?UTF-8?q?=20local=20'.pre-commit-config.yaml'=20with=20remote=20'templat?= =?UTF-8?q?es/.pre-commit-config.yaml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .pre-commit-config.yaml | 44 ++++++++++++++++++++++++++++++----------- 1 file changed, 33 insertions(+), 11 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7bfa4f59..3dcb66e0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,9 +1,18 @@ # See https://pre-commit.com for more information # See https://pre-commit.com/hooks.html for more hooks +files: | + (?x)( + noxfile\.py| + setup\.py| + docs\/.+\.py| + benchmarks\/.+\.py| + ) +minimum_pre_commit_version: 1.21.0 + repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v4.5.0 hooks: # Prevent giant files from being committed. - id: check-added-large-files @@ -18,29 +27,42 @@ repos: # Don't commit to main branch. - id: no-commit-to-branch -- repo: https://github.com/psf/black - rev: 24.4.0 +- repo: https://github.com/astral-sh/ruff-pre-commit + rev: "v0.3.4" hooks: - - id: black + - id: ruff + types: [file, python] + args: [--fix, --show-fixes] + - id: ruff-format types: [file, python] - args: [--config=./pyproject.toml] + +- repo: https://github.com/codespell-project/codespell + rev: "v2.2.6" + hooks: + - id: codespell + types_or: [asciidoc, python, markdown, rst] + additional_dependencies: [tomli] - repo: https://github.com/PyCQA/flake8 rev: 7.0.0 hooks: - id: flake8 types: [file, python] - args: [--config=./setup.cfg] -- repo: https://github.com/PyCQA/isort - rev: 5.13.2 +- repo: https://github.com/asottile/blacken-docs + rev: 1.16.0 hooks: - - id: isort - types: [file, python] - args: [--filter-files] + - id: blacken-docs + types: [file, rst] - repo: https://github.com/aio-libs/sort-all rev: v1.2.0 hooks: - id: sort-all types: [file, python] + +- repo: https://github.com/numpy/numpydoc + rev: v1.7.0 + hooks: + - id: numpydoc-validation + types: [file, python] \ No newline at end of file