From a1329ee62cf0f215279c02231296e2972f8e03a1 Mon Sep 17 00:00:00 2001 From: Jarrod Millman Date: Mon, 5 Sep 2022 03:07:04 -0700 Subject: [PATCH] Update precommit hooks (#144) --- .pre-commit-config.yaml | 22 +++++++++++++++++++++- requirements.txt | 2 +- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0d71d943..5bd9a67c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,8 +2,22 @@ # pre-commit install repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.3.0 + hooks: + - id: trailing-whitespace + - id: end-of-file-fixer + - id: debug-statements + - id: check-ast + - id: mixed-line-ending + - id: check-yaml + args: [--allow-multiple-documents] + - id: check-json + - id: check-toml + - id: check-added-large-files + - repo: https://github.com/psf/black - rev: 22.6.0 + rev: 22.8.0 hooks: - id: black @@ -13,3 +27,9 @@ repos: - id: prettier files: \.(md|yml|yaml) args: [--prose-wrap=preserve] + + - repo: https://github.com/asottile/pyupgrade + rev: v2.37.3 + hooks: + - id: pyupgrade + args: [--py38-plus] diff --git a/requirements.txt b/requirements.txt index e350275b..db79816f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -pre-commit>=2.19 +pre-commit>=2.20