Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c25ed5d

Browse files
authoredJan 5, 2024
STY: Enable ruff pytest checks (#56671)
* Enable PT001 * Add PT002 * Add PT003 * ignore 4 and 5 * Ignore 6, 7, 8 * Ignore PT009 * Enable PT010 * Enable PT011 * Ignore 12, enable 13 * Enable PT014 * Enforce PT015 * Enable 16 * Disable 17 * Ignore 18 * Ignore 19 * Add 20 * add 21 * Enable 22 * Add 23 * Add 24 * Add 25 * add 26 * Add 27 * use PT * fix some tests * Deduplcate test * Add tests * Added nested tuple case
1 parent 9a05458 commit c25ed5d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+78
-315
lines changed
 

‎.pre-commit-config.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -272,13 +272,6 @@ repos:
272272
language: python
273273
types: [rst]
274274
files: ^doc/source/(development|reference)/
275-
- id: unwanted-patterns-bare-pytest-raises
276-
name: Check for use of bare pytest raises
277-
language: python
278-
entry: python scripts/validate_unwanted_patterns.py --validation-type="bare_pytest_raises"
279-
types: [python]
280-
files: ^pandas/tests/
281-
exclude: ^pandas/tests/extension/
282275
- id: unwanted-patterns-private-function-across-module
283276
name: Check for use of private functions across modules
284277
language: python

‎pandas/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1971,6 +1971,6 @@ def warsaw(request) -> str:
19711971
return request.param
19721972

19731973

1974-
@pytest.fixture()
1974+
@pytest.fixture
19751975
def arrow_string_storage():
19761976
return ("pyarrow", "pyarrow_numpy")

0 commit comments

Comments
 (0)
Please sign in to comment.