Skip to content

Commit 80a6e1a

Browse files
authored
Add docformatter. (#29)
1 parent 78bfa18 commit 80a6e1a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ repos:
3131
rev: v1.20.1
3232
hooks:
3333
- id: setup-cfg-fmt
34+
- repo: https://github.com/myint/docformatter
35+
rev: v1.3.1
36+
hooks:
37+
- id: docformatter
38+
args: [--in-place, --wrap-summaries, "88", --wrap-descriptions, "88", --blank]
3439
- repo: https://github.com/psf/black
3540
rev: 22.3.0
3641
hooks:

src/pytask_r/collect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
def run_r_script(script: Path, options: list[str], serialized: Path) -> None:
2222
"""Run an R script."""
2323
cmd = ["Rscript", script.as_posix(), *options, str(serialized)]
24-
print("Executing " + " ".join(cmd) + ".") # noqa: T001
24+
print("Executing " + " ".join(cmd) + ".") # noqa: T201
2525
subprocess.run(cmd, check=True)
2626

2727

0 commit comments

Comments
 (0)