Skip to content

Commit 1457626

Browse files
committed
Replace no-relative-imports with TID ruff rules
1 parent c7ad546 commit 1457626

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ repos:
1212
- id: debug-statements
1313
- id: end-of-file-fixer
1414
- id: no-commit-to-branch
15-
args: [--branch, main]
1615
- id: requirements-txt-fixer
1716
exclude: ^requirements-dev\.txt$
1817
- id: trailing-whitespace
@@ -69,12 +68,6 @@ repos:
6968
files: ^conda-envs/environment-dev.yml$
7069
language: python
7170
name: Generate pip dependency from conda
72-
- id: no-relative-imports
73-
name: No relative imports
74-
entry: from \.[\.\w]* import
75-
types: [python]
76-
language: pygrep
77-
exclude: (?x)(pymc/_version.py|versioneer.py)
7871
- id: no-internal-links
7972
name: Check no links that should be cross-references are in the docs
8073
description: >-

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ extend-exclude = ["_version.py"]
3737
docstring-code-format = true
3838

3939
[tool.ruff.lint]
40-
select = ["C4", "D", "E", "F", "I", "UP", "W", "RUF", "T20"]
40+
select = ["C4", "D", "E", "F", "I", "UP", "W", "RUF", "T20", "TID"]
4141
ignore = [
4242
"E501",
4343
"F841", # Local variable name is assigned to but never used

0 commit comments

Comments
 (0)