Skip to content

Commit cb4fd95

Browse files
mroeschkecbpygit
authored andcommitted
STY: Use ruff instead of pygrep check for future annotation import (pandas-dev#56666)
1 parent 1222b45 commit cb4fd95

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

.pre-commit-config.yaml

-12
Original file line numberDiff line numberDiff line change
@@ -358,18 +358,6 @@ repos:
358358
files: ^pandas/
359359
exclude: ^(pandas/_libs/|pandas/tests/|pandas/errors/__init__.py$|pandas/_version.py)
360360
types: [python]
361-
- id: future-annotations
362-
name: import annotations from __future__
363-
entry: 'from __future__ import annotations'
364-
language: pygrep
365-
args: [--negate]
366-
files: ^pandas/
367-
types: [python]
368-
exclude: |
369-
(?x)
370-
/(__init__\.py)|(api\.py)|(_version\.py)|(testing\.py)|(conftest\.py)$
371-
|/tests/
372-
|/_testing/
373361
- id: check-test-naming
374362
name: check that test names start with 'test'
375363
entry: python -m scripts.check_test_naming

pyproject.toml

+2
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,8 @@ select = [
259259
"FLY",
260260
# flake8-logging-format
261261
"G",
262+
# flake8-future-annotations
263+
"FA",
262264
]
263265

264266
ignore = [

0 commit comments

Comments
 (0)