From 4108644f2cc67ae8c877037318b96a78e4299fce Mon Sep 17 00:00:00 2001 From: Jairo Llopis <973709+yajo@users.noreply.github.com> Date: Mon, 7 Nov 2022 12:43:30 +0000 Subject: [PATCH 1/2] fix: do not pass file names with pre-commit This is the only way pydocstyle will obey its own match rules. --- .pre-commit-hooks.yaml | 1 + docs/release_notes.rst | 1 + 2 files changed, 2 insertions(+) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index cb55ee45..3009bf52 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -4,3 +4,4 @@ entry: pydocstyle language: python types: [python] + pass_file_names: false diff --git a/docs/release_notes.rst b/docs/release_notes.rst index a9060aef..2cf25b38 100644 --- a/docs/release_notes.rst +++ b/docs/release_notes.rst @@ -18,6 +18,7 @@ New Features Bug Fixes * Fix ``--match`` option to only consider filename when matching full paths (#550). +* Obey match rules in pre-commit usage (#610). 6.1.1 - May 17th, 2021 --------------------------- From 4edb792ffa559fd01832db3ae9c7796bcbe35e2b Mon Sep 17 00:00:00 2001 From: Sambhav Kothari Date: Sun, 8 Jan 2023 17:58:19 +0000 Subject: [PATCH 2/2] Update release_notes.rst --- docs/release_notes.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/release_notes.rst b/docs/release_notes.rst index b5bdd33f..bb4595ec 100644 --- a/docs/release_notes.rst +++ b/docs/release_notes.rst @@ -11,6 +11,7 @@ Bug Fixes * Fix decorator parsing for async function. Resolves some false positives with async functions and ``overload``. (#577) +* Obey match rules in pre-commit usage (#610). 6.2.2 - January 3rd, 2023 --------------------------- @@ -39,7 +40,6 @@ New Features Bug Fixes * Fix ``--match`` option to only consider filename when matching full paths (#550). -* Obey match rules in pre-commit usage (#610). 6.1.1 - May 17th, 2021 ---------------------------