Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ repos:
rev: v0.0.244
hooks:
- id: ruff
- repo: https://github.com/MarcoGorelli/absolufy-imports
rev: v0.3.1
hooks:
- id: absolufy-imports
files: ^pandas/
- repo: https://github.com/jendrikseipp/vulture
rev: 'v2.7'
hooks:
Expand Down
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,8 @@ select = [
"Q",
# pylint
"PLE", "PLR", "PLW",
# tidy imports
"TID",
]

ignore = [
Expand Down Expand Up @@ -273,6 +275,10 @@ exclude = [
"env",
]

[tool.ruff.per-file-ignores]
# relative imports allowed for asv_bench
"asv_bench/*" = ["TID"]

[tool.pylint.messages_control]
max-line-length = 88
disable = [
Expand Down
2 changes: 1 addition & 1 deletion scripts/tests/test_inconsistent_namespace_check.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from ..check_for_inconsistent_pandas_namespace import (
from scripts.check_for_inconsistent_pandas_namespace import (
check_for_inconsistent_pandas_namespace,
)

Expand Down
2 changes: 1 addition & 1 deletion scripts/tests/test_validate_docstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import pytest

from .. import validate_docstrings
from scripts import validate_docstrings


class BadDocstrings:
Expand Down
2 changes: 1 addition & 1 deletion scripts/tests/test_validate_unwanted_patterns.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import pytest

from .. import validate_unwanted_patterns
from scripts import validate_unwanted_patterns


class TestBarePytestRaises:
Expand Down