Skip to content

Commit 675ece6

Browse files
authored
Document autofixing behavior (#45)
1 parent a226068 commit 675ece6

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,21 @@ repos:
2323
- id: zizmor
2424
```
2525
26+
To autofix issues, set the following args:
27+
28+
```yaml
29+
repos:
30+
- repo: https://github.com/zizmorcore/zizmor-pre-commit
31+
# Zizmor version.
32+
rev: v1.24.1
33+
hooks:
34+
# Run the linter.
35+
- id: zizmor
36+
args: [--no-progress, --fix]
37+
```
38+
39+
(`--no-progress` must be specified since that arg exists in the repo's hook configuration, and `args` overrides all existing args)
40+
2641
[zizmor-pre-commit#22]: https://github.com/zizmorcore/zizmor-pre-commit/issues/22
2742

2843
## License

0 commit comments

Comments
 (0)