Skip to content

Commit 54b1e6f

Browse files
committed
pre-commit: add pyupgrade, run it
1 parent 6703c90 commit 54b1e6f

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,13 @@ repos:
6666
# Intentionally not run on helpers/python (support very old versions)
6767
exclude: completions/
6868

69+
- repo: https://github.com/asottile/pyupgrade
70+
rev: v2.7.1
71+
hooks:
72+
- id: pyupgrade
73+
args: [--py3-plus, --keep-percent-format]
74+
exclude: completions/
75+
6976
- repo: https://github.com/perltidy/perltidy
7077
rev: "20200619"
7178
hooks:

extra/make-changelog.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/python3
2-
# -*- encoding: utf-8 -*-
32

43
import sys
54
from collections import defaultdict

0 commit comments

Comments
 (0)