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