Skip to content

Commit 6057d7a

Browse files
authored
STYLE remove absolufy-imports, use ruff (#51408)
replace supplanted absolufy-imports Co-authored-by: MarcoGorelli <>
1 parent 31d4141 commit 6057d7a

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ repos:
3131
rev: v0.0.244
3232
hooks:
3333
- id: ruff
34-
- repo: https://github.com/MarcoGorelli/absolufy-imports
35-
rev: v0.3.1
36-
hooks:
37-
- id: absolufy-imports
38-
files: ^pandas/
3934
- repo: https://github.com/jendrikseipp/vulture
4035
rev: 'v2.7'
4136
hooks:

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,8 @@ select = [
212212
"Q",
213213
# pylint
214214
"PLE", "PLR", "PLW",
215+
# tidy imports
216+
"TID",
215217
]
216218

217219
ignore = [
@@ -273,6 +275,10 @@ exclude = [
273275
"env",
274276
]
275277

278+
[tool.ruff.per-file-ignores]
279+
# relative imports allowed for asv_bench
280+
"asv_bench/*" = ["TID"]
281+
276282
[tool.pylint.messages_control]
277283
max-line-length = 88
278284
disable = [

scripts/tests/test_inconsistent_namespace_check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import pytest
22

3-
from ..check_for_inconsistent_pandas_namespace import (
3+
from scripts.check_for_inconsistent_pandas_namespace import (
44
check_for_inconsistent_pandas_namespace,
55
)
66

scripts/tests/test_validate_docstrings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import pytest
55

6-
from .. import validate_docstrings
6+
from scripts import validate_docstrings
77

88

99
class BadDocstrings:

scripts/tests/test_validate_unwanted_patterns.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import pytest
44

5-
from .. import validate_unwanted_patterns
5+
from scripts import validate_unwanted_patterns
66

77

88
class TestBarePytestRaises:

0 commit comments

Comments
 (0)