From bb2cf42a43c11388c46256cb1e4e6c1ba3549506 Mon Sep 17 00:00:00 2001 From: Tobias Raabe Date: Sat, 6 Aug 2022 00:07:05 +0200 Subject: [PATCH 1/2] Add docformatter. Committed via https://github.com/asottile/all-repos --- .pre-commit-config.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index aea16c5..8165d18 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -38,6 +38,11 @@ repos: rev: v1.20.1 hooks: - id: setup-cfg-fmt +- repo: https://github.com/myint/docformatter + rev: v1.3.1 + hooks: + - id: docformatter + args: [--in-place, --wrap-summaries, "88", --wrap-descriptions, "88", --blank] - repo: https://github.com/psf/black rev: 22.3.0 hooks: From 14bf9ab9027d09bf20cad1c68158463e04a017d2 Mon Sep 17 00:00:00 2001 From: Tobias Raabe Date: Sat, 6 Aug 2022 00:35:16 +0200 Subject: [PATCH 2/2] Fix flake8. --- src/pytask_stata/collect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pytask_stata/collect.py b/src/pytask_stata/collect.py index 6853faf..74fa2c5 100644 --- a/src/pytask_stata/collect.py +++ b/src/pytask_stata/collect.py @@ -25,7 +25,7 @@ def run_stata_script( ) -> None: """Run an R script.""" cmd = [executable, "-e", "do", script.as_posix(), *options, *log_name] - print("Executing " + " ".join(cmd) + ".") # noqa: T001 + print("Executing " + " ".join(cmd) + ".") # noqa: T201 subprocess.run(cmd, cwd=cwd, check=True)