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 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