From a9bb4a7122df6d9d4a764de52244c6ec75789ead Mon Sep 17 00:00:00 2001 From: Paolo Melchiorre Date: Mon, 5 Dec 2022 18:38:37 +0100 Subject: Add pyupgrade with --py310-plus in pre-commit (#103) --- .pre-commit-config.yaml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to '.pre-commit-config.yaml') diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 260a987..abc8050 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,6 +14,12 @@ repos: - id: pretty-format-json - id: trailing-whitespace + - repo: https://github.com/asottile/pyupgrade + rev: "v3.3.0" + hooks: + - id: pyupgrade + args: [--py310-plus] + - repo: https://github.com/psf/black rev: 22.10.0 hooks: -- cgit v1.2.3