Skip to content

Commit

Permalink
Add pre-commit hook pyupgrade
Browse files Browse the repository at this point in the history
[pyupgrade] can be used as a [pre-commit] hook to update syntax to match
newer versions of Python.

[pre-commit]: https://pre-commit.com
[pyupgrade]: https://pypi.org/p/pyupgrade
  • Loading branch information
dirn committed Oct 17, 2023
1 parent cf5e146 commit 8dd6321
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ repos:
hooks:
- id: editorconfig-checker
alias: ec
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
hooks:
- id: pyupgrade
args: ['--py311-plus']
- repo: https://github.com/PyCQA/autoflake
rev: v2.2.1
hooks:
Expand Down

0 comments on commit 8dd6321

Please sign in to comment.