From 3c346fa2540b459e5593ab49de7dd8e279e4d8c6 Mon Sep 17 00:00:00 2001 From: Xiaohan Li Date: Thu, 6 Jul 2023 15:13:06 +0200 Subject: [PATCH] exclude examples and tests for pre-commit --- .pre-commit-config.yaml | 1 + pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index af08df62..afbf8f0b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,4 +1,5 @@ --- +exclude: ^(examples/|tests/) repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v3.2.0 diff --git a/pyproject.toml b/pyproject.toml index 78560060..066b6004 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -75,7 +75,7 @@ line-length = 88 select = ["E", "F", "I", "PT", "D"] ignore-init-module-imports = true ignore = ["D211", "D213", "E741", "D105", "E712"] -exclude = ["docs"] +exclude = ["examples", "tests", "docs"] [tool.ruff.pydocstyle] convention = "numpy"