From 4ed79f016b0e88922269422a09a6c8afda7a30cf Mon Sep 17 00:00:00 2001 From: moink Date: Tue, 5 Jan 2021 17:47:29 +0100 Subject: [PATCH 1/2] TST: Gh30999 update pre-commit config to only exclude extension from bare pytest raises check --- .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 f5d8503041ccd..b3b6b89a2ee90 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -126,7 +126,7 @@ repos: entry: python scripts/validate_unwanted_patterns.py --validation-type="bare_pytest_raises" types: [python] files: ^pandas/tests/ - exclude: ^pandas/tests/(computation|extension|io)/ + exclude: ^pandas/tests/extension - id: inconsistent-namespace-usage name: 'Check for inconsistent use of pandas namespace in tests' entry: python scripts/check_for_inconsistent_pandas_namespace.py From b118940f8f69455f193db025e2d3d2f03e4b2171 Mon Sep 17 00:00:00 2001 From: Marco Gorelli Date: Tue, 5 Jan 2021 17:26:11 +0000 Subject: [PATCH 2/2] Update .pre-commit-config.yaml --- .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 b3b6b89a2ee90..52f923c41cbd4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -126,7 +126,7 @@ repos: entry: python scripts/validate_unwanted_patterns.py --validation-type="bare_pytest_raises" types: [python] files: ^pandas/tests/ - exclude: ^pandas/tests/extension + exclude: ^pandas/tests/extension/ - id: inconsistent-namespace-usage name: 'Check for inconsistent use of pandas namespace in tests' entry: python scripts/check_for_inconsistent_pandas_namespace.py