From 7cadc41f1805cc0896173496ee515cb507b66211 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Jul 2026 17:21:59 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v3.4.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v3.4.0...v6.0.0) - [github.com/python-formate/pyupgrade: bbe3007 → v3.3.0](https://github.com/python-formate/pyupgrade/compare/bbe3007...v3.3.0) - [github.com/Lucas-C/pre-commit-hooks: v1.5.1 → v1.5.6](https://github.com/Lucas-C/pre-commit-hooks/compare/v1.5.1...v1.5.6) - [github.com/python-formate/snippet-fmt: v0.1.5 → v0.2.0](https://github.com/python-formate/snippet-fmt/compare/v0.1.5...v0.2.0) --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 952ff8f..069c1bd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,7 +13,7 @@ repos: - id: reformat-pyproject - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.4.0 + rev: v6.0.0 hooks: - id: check-added-large-files - id: check-ast @@ -64,7 +64,7 @@ repos: - id: rst-inline-touching-normal - repo: https://github.com/python-formate/pyupgrade - rev: bbe3007 + rev: v3.3.0 hooks: - id: pyupgrade args: @@ -72,13 +72,13 @@ repos: - --keep-runtime-typing - repo: https://github.com/Lucas-C/pre-commit-hooks - rev: v1.5.1 + rev: v1.5.6 hooks: - id: remove-crlf - id: forbid-crlf - repo: https://github.com/python-formate/snippet-fmt - rev: v0.1.5 + rev: v0.2.0 hooks: - id: snippet-fmt From d5e06a7357c1cf28e7cc73011c5bcb5b488dd1c9 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Jul 2026 17:26:58 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- domdf_python_tools/paths.py | 2 -- domdf_python_tools/terminal.py | 1 - domdf_python_tools/words.py | 1 - 3 files changed, 4 deletions(-) diff --git a/domdf_python_tools/paths.py b/domdf_python_tools/paths.py index 6ca924c..9d54304 100644 --- a/domdf_python_tools/paths.py +++ b/domdf_python_tools/paths.py @@ -234,7 +234,6 @@ def maybe_make(directory: PathLike, mode: int = 0o777, parents: bool = False): :no-default parents: .. versionchanged:: 1.6.0 Removed the ``'exist_ok'`` option, since it made no sense in this context. - """ if not isinstance(directory, pathlib.Path): @@ -455,7 +454,6 @@ def maybe_make( This will fail silently if a file with the same name already exists. This appears to be due to the behaviour of :func:`os.mkdir`. - """ try: diff --git a/domdf_python_tools/terminal.py b/domdf_python_tools/terminal.py index a0c0ac3..d34aeae 100644 --- a/domdf_python_tools/terminal.py +++ b/domdf_python_tools/terminal.py @@ -118,7 +118,6 @@ def interrupt() -> None: >>> interrupt() (Press Ctrl-C to quit at any time) - """ print(f"(Press Ctrl-{'C' if os.name == 'nt' else 'D'} to quit at any time)") diff --git a/domdf_python_tools/words.py b/domdf_python_tools/words.py index d7dc7d8..b7250b4 100644 --- a/domdf_python_tools/words.py +++ b/domdf_python_tools/words.py @@ -673,7 +673,6 @@ class PluralPhrase(NamedTuple): 'The farmer has 2 cows.' .. _valid syntax: https://docs.python.org/3/library/string.html#formatstrings - """ template: str