Skip to content

Commit

Permalink
Backport PR pandas-dev#56666: STY: Use ruff instead of pygrep check f…
Browse files Browse the repository at this point in the history
…or future annotation import
  • Loading branch information
mroeschke authored and meeseeksmachine committed Dec 29, 2023
1 parent 903d152 commit ec3643c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
12 changes: 0 additions & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -358,18 +358,6 @@ repos:
files: ^pandas/
exclude: ^(pandas/_libs/|pandas/tests/|pandas/errors/__init__.py$|pandas/_version.py)
types: [python]
- id: future-annotations
name: import annotations from __future__
entry: 'from __future__ import annotations'
language: pygrep
args: [--negate]
files: ^pandas/
types: [python]
exclude: |
(?x)
/(__init__\.py)|(api\.py)|(_version\.py)|(testing\.py)|(conftest\.py)$
|/tests/
|/_testing/
- id: check-test-naming
name: check that test names start with 'test'
entry: python -m scripts.check_test_naming
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,8 @@ select = [
"FLY",
# flake8-logging-format
"G",
# flake8-future-annotations
"FA",
]

ignore = [
Expand Down

0 comments on commit ec3643c

Please sign in to comment.