From a7da0f661fdfa11633357f802677538d871c9c69 Mon Sep 17 00:00:00 2001 From: Stefan van der Walt Date: Tue, 1 Feb 2022 11:36:40 -0800 Subject: [PATCH 1/2] Update black --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4dc09c1..4872d6c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ repos: - repo: https://github.com/psf/black - rev: 21.5b1 + rev: 22.1.0 hooks: - id: black - repo: https://gitlab.com/pycqa/flake8 From ab86e2150967e3dd7fe1f0a34607a270eedce060 Mon Sep 17 00:00:00 2001 From: Stefan van der Walt Date: Tue, 1 Feb 2022 11:58:19 -0800 Subject: [PATCH 2/2] Add YAML format checking --- .pre-commit-config.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4872d6c..fbca482 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,10 +2,16 @@ # pre-commit install repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.1.0 + hooks: + - id: check-yaml + - id: end-of-file-fixer + - id: trailing-whitespace - repo: https://github.com/psf/black rev: 22.1.0 hooks: - - id: black + - id: black - repo: https://gitlab.com/pycqa/flake8 rev: 3.8.4 hooks: