Skip to content

Commit

Permalink
Remove & consolidate pre-commit checks
Browse files Browse the repository at this point in the history
  • Loading branch information
mroeschke committed Jul 7, 2023
1 parent 0e2821a commit b9509a5
Showing 1 changed file with 3 additions and 19 deletions.
22 changes: 3 additions & 19 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,6 @@ repos:
exclude: ^pandas/core/interchange/
language: python
types: [python]
- id: no-os-remove
name: Check code for instances of os.remove
entry: os\.remove
language: pygrep
types: [python]
files: ^pandas/tests/
- id: unwanted-patterns
name: Unwanted patterns
language: pygrep
Expand Down Expand Up @@ -216,19 +210,6 @@ repos:
entry: 'np\.random\.seed'
files: ^asv_bench/benchmarks
exclude: ^asv_bench/benchmarks/pandas_vb_common\.py
- id: np-testing-array-equal
name: Check for usage of numpy testing or array_equal
language: pygrep
entry: '(numpy|np)(\.testing|\.array_equal)'
files: ^pandas/tests/
types: [python]
- id: invalid-ea-testing
name: Check for invalid EA testing
language: pygrep
entry: 'tm\.assert_(series|frame)_equal'
files: ^pandas/tests/extension/base
types: [python]
exclude: ^pandas/tests/extension/base/base\.py
- id: unwanted-patterns-in-tests
name: Unwanted patterns in tests
language: pygrep
Expand Down Expand Up @@ -262,6 +243,9 @@ repos:
# pytest.warns (use tm.assert_produces_warning instead)
|pytest\.warns
# os.remove
|os\.remove
files: ^pandas/tests/
types_or: [python, cython, rst]
- id: unwanted-patterns-in-ea-tests
Expand Down

0 comments on commit b9509a5

Please sign in to comment.