Skip to content

Commit

Permalink
Replace no-relative-imports with TID ruff rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Armavica committed Oct 7, 2024
1 parent 50cd48a commit 7a03f96
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ repos:
- id: debug-statements
- id: end-of-file-fixer
- id: no-commit-to-branch
args: [--branch, main]
- id: requirements-txt-fixer
exclude: ^requirements-dev\.txt$
- id: trailing-whitespace
Expand Down Expand Up @@ -69,12 +68,6 @@ repos:
files: ^conda-envs/environment-dev.yml$
language: python
name: Generate pip dependency from conda
- id: no-relative-imports
name: No relative imports
entry: from \.[\.\w]* import
types: [python]
language: pygrep
exclude: (?x)(pymc/_version.py|versioneer.py)
- id: no-internal-links
name: Check no links that should be cross-references are in the docs
description: >-
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ extend-exclude = ["_version.py"]
docstring-code-format = true

[tool.ruff.lint]
select = ["D", "E", "F", "I", "UP", "W", "RUF", "T20"]
select = ["D", "E", "F", "I", "UP", "W", "RUF", "T20", "TID"]
ignore = [
"E501",
"F841", # Local variable name is assigned to but never used
Expand Down

0 comments on commit 7a03f96

Please sign in to comment.