Skip to content

Commit

Permalink
readme: add note about customizing args in pre-commit
Browse files Browse the repository at this point in the history
Closes #277.
  • Loading branch information
fsouza committed Sep 23, 2023
1 parent 1205197 commit 4a79768
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,3 +205,14 @@ Add the following to your `.pre-commit-config.yaml`
hooks:
- id: autoflake
```

When customizing the arguments, make sure you include `--in-place` in the list
of arguments:

```yaml
- repo: https://github.com/PyCQA/autoflake
rev: v2.2.1
hooks:
- id: autoflake
args: [--remove-all-unused-imports, --in-place]
```

0 comments on commit 4a79768

Please sign in to comment.