From 1ec30b7e6e206e5e3aceb90563b64fcddd7645f1 Mon Sep 17 00:00:00 2001 From: s-weigand Date: Sat, 5 Oct 2024 21:23:34 +0200 Subject: [PATCH 1/4] =?UTF-8?q?=F0=9F=A9=B9=20Remove=20broken=20'python=5F?= =?UTF-8?q?venv'=20hook?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .pre-commit-hooks.yaml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 80cdc92..9aaf4a0 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -5,10 +5,3 @@ args: [-i] language: python types: [python] -- id: docformatter-venv - name: docformatter-venv - description: 'Formats docstrings to follow PEP 257. Uses python3 -m venv.' - entry: docformatter - args: [-i] - language: python_venv - types: [python] From 67500ebd0839bf97a6401f1856ef090970b446d9 Mon Sep 17 00:00:00 2001 From: s-weigand Date: Sat, 5 Oct 2024 21:30:07 +0200 Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=A7=B0=20Add=20pre-commit-hook=20to?= =?UTF-8?q?=20validate=20hook=20manifest?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .pre-commit-config.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e3c6ab0..241eb08 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,6 +9,10 @@ repos: - id: end-of-file-fixer - id: no-commit-to-branch - id: trailing-whitespace + - repo: https://github.com/pre-commit/pre-commit + rev: v4.0.0 + hooks: + - id: validate_manifest - repo: https://github.com/psf/black rev: '23.3.0' hooks: From 8f9c4f8f85f40bfad8503436ca82ee129d6339b3 Mon Sep 17 00:00:00 2001 From: s-weigand Date: Sat, 5 Oct 2024 21:50:43 +0200 Subject: [PATCH 3/4] =?UTF-8?q?=F0=9F=A7=B0=E2=9A=99=EF=B8=8F=F0=9F=A9=B9?= =?UTF-8?q?=20Pin=20ruff=20version=20in=20tox=20config=20to=20the=20same?= =?UTF-8?q?=20version=20as=20in=20pre-commit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 9149d8c..b91d7bf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -263,7 +263,7 @@ deps = charset_normalizer pycodestyle pydocstyle - ruff + ruff==0.0.269 rstcheck toml untokenize From 5757c5190d95e5449f102ace83df92e7d3b06c6c Mon Sep 17 00:00:00 2001 From: s-weigand Date: Sat, 5 Oct 2024 21:58:35 +0200 Subject: [PATCH 4/4] =?UTF-8?q?=F0=9F=A7=B9=20Fix=20additional=20EOL=20at?= =?UTF-8?q?=20end=20of=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/docformatter/syntax.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/docformatter/syntax.py b/src/docformatter/syntax.py index f375172..8981e87 100644 --- a/src/docformatter/syntax.py +++ b/src/docformatter/syntax.py @@ -975,4 +975,3 @@ def _field_over_url( if _value[1] < any_param_start: nonoverlapping_urls.append(_value) return nonoverlapping_urls -