From 89eacf577891b739fe3f67edfa9fa5c4d2f6912b Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Tue, 14 Jun 2022 01:55:04 -0500 Subject: [PATCH 1/2] MNT: Update 'pre-commit-hooks' pre-commit hook to v4.3.0 --- .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 04f8a02cb980..f4b0ec367248 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,7 +13,7 @@ exclude: | ) repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.2.0 + rev: v4.3.0 hooks: - id: check-added-large-files - id: check-docstring-first From ade569ee53bf330a94bc8b70d99887943274b469 Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Mon, 6 Jun 2022 21:47:11 -0500 Subject: [PATCH 2/2] DEV: Add name-tests-test to pre-commit hooks * Add the 'name-tests-test' pre-commit hook which verifies that test files under lib/matplotlib/tests/ conform to pytest naming conventions. - Use the '--django' option to match the 'test*.py' naming convention. --- .pre-commit-config.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f4b0ec367248..c9aae7a35281 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,6 +20,8 @@ repos: - id: end-of-file-fixer exclude_types: [svg] - id: mixed-line-ending + - id: name-tests-test + args: ["--django"] - id: trailing-whitespace exclude_types: [svg] - repo: https://github.com/pycqa/flake8