diff options
author | Joris Roovers <joris.roovers@gmail.com> | 2023-04-04 11:40:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-04 11:40:24 +0200 |
commit | 6cbe7986f68a3e5cb336a3eb31f6bd428d469ea8 (patch) | |
tree | b1c6253e8c79dd3235f5e54f9d86fcecbde99663 | |
parent | 91c4331af798528a885bc919a9aaa62bf7a2137b (diff) |
Hatch autofix script: always run black (#480)
Before this patch, we didn't run black as part of autofix if `ruff
--fix` returned an error. This patch ensures the exit status of `ruff
--fix` is ignored and black always runs.
-rw-r--r-- | pyproject.toml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyproject.toml b/pyproject.toml index 165ebba..10a7e81 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -103,7 +103,7 @@ format = "black --check --diff {args:.}" lint = "ruff {args:gitlint-core/gitlint qa}" autoformat = "black {args:.}" autofix = [ - "ruff --fix {args:gitlint-core/gitlint qa}", + "- ruff --fix {args:gitlint-core/gitlint qa}", "autoformat", # ] |