Skip to content

Commit

Permalink
Pre-commit: include Python modernizer tool
Browse files Browse the repository at this point in the history
Integrate pyupgrade, a tool to carefully upgrade some Python syntax to
uer newer equivalents.
  • Loading branch information
imphil committed Mar 17, 2020
1 parent e465342 commit 06a0070
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,9 @@ repos:
rev: 19.10b0
hooks:
- id: black
- repo: https://github.com/asottile/pyupgrade
rev: v2.1.0
hooks:
- id: pyupgrade
# for now don't force to change from %-operator to {}
args: [--keep-percent-format, --py3-plus]

0 comments on commit 06a0070

Please sign in to comment.