From dd428e9788cd902fbe50ab23e1cbd57b8abaa582 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 22 May 2023 18:14:02 +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/PyCQA/docformatter: v1.6.5 → v1.7.1](https://github.com/PyCQA/docformatter/compare/v1.6.5...v1.7.1) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5bd97fe..b42df42 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -42,7 +42,7 @@ repos: args: [ --config=setup.cfg ] - repo: https://github.com/PyCQA/docformatter - rev: v1.6.5 + rev: v1.7.1 hooks: - id: docformatter args: [ --in-place ] From fb379a85af06a6e66f09050403051d9eaa2e908c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 22 May 2023 18:16:21 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/parser.py | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/src/parser.py b/src/parser.py index 7233265..cfbea88 100644 --- a/src/parser.py +++ b/src/parser.py @@ -36,24 +36,18 @@ class Parser(object): self._EXCLUDED.append(name) def get_excluded_patches(self) -> List[str]: - """ - Getter to get all excluded patches - :return: List of excluded patches - """ + """Getter to get all excluded patches :return: List of excluded + patches.""" return self._EXCLUDED def get_all_patches(self) -> List[str]: - """ - Getter to get all excluded patches - :return: List of excluded patches - """ + """Getter to get all excluded patches :return: List of excluded + patches.""" return self._PATCHES def invert_patch(self, name: str) -> bool: - """ - Getter to get all excluded patches - :return: List of excluded patches - """ + """Getter to get all excluded patches :return: List of excluded + patches.""" try: patch_index = self._PATCHES.index(name) if self._PATCHES[patch_index - 1] == "-e":