From 048897dd844dd5e56689de1bd3f04780c27c6795 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20P=C3=A9rez-Garc=C3=ADa?= Date: Mon, 1 Aug 2022 09:34:28 +0100 Subject: [PATCH] STYLE: Enable pre-commit autofixes This will avoid e.g. https://github.com/microsoft/InnerEye-DeepLearning/pull/769#issuecomment-1193686392. --- .pre-commit-config.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c1c6cebd5..2be629fd7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ # See https://github.com/pre-commit/pre-commit-hooks/blob/master/.pre-commit-config.yaml for an example with more hooks ci: - autofix_prs: false + autofix_prs: true autoupdate_commit_msg: "ENH: Autoupdate hooks [pre-commit.ci]" autoupdate_schedule: monthly @@ -33,3 +33,4 @@ repos: rev: v1.6.0 hooks: - id: autopep8 + args: [--in-place, --max-line-length, "160"]