Skip to content

Commit a2a22f2

Browse files
committed
🔥(project) remove generic ruff checks in pre-commit rules
We now check sources on a per-service basis.
1 parent fc94384 commit a2a22f2

File tree

3 files changed

+0
-79
lines changed

3 files changed

+0
-79
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,3 @@ repos:
99
- id: trailing-whitespace
1010
- id: debug-statements
1111
files: ^src/.+\.py$
12-
13-
# Python linting and formatting with Make
14-
- repo: https://github.com/astral-sh/ruff-pre-commit
15-
# Ruff version.
16-
rev: v0.13.2
17-
hooks:
18-
# Run the linter.
19-
- id: ruff-check
20-
args: [--config, dev/pyproject.toml]
21-
# Run the formatter.
22-
- id: ruff-format
23-
args: [--config, dev/pyproject.toml]

dev/pyproject.toml

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ requires-python = ">=3.12"
88
[dependency-groups]
99
dev = [
1010
"pre-commit>=3.0.0",
11-
"ruff>=0.1.0",
1211
"commitizen>=3.0.0"
1312
]
1413

@@ -68,41 +67,3 @@ message = "Body (optional, explain WHY):"
6867
type = "input"
6968
name = "footer"
7069
message = "Footer (optional, breaking changes, issues):"
71-
72-
[tool.ruff]
73-
line-length = 99
74-
target-version = "py311"
75-
exclude = [
76-
"migrations",
77-
]
78-
79-
[tool.ruff.lint]
80-
select = [
81-
"B", # flake8-bugbear
82-
"C4", # flake8-comprehensions
83-
"D", # pydocstyle
84-
"E", # pycodestyle error
85-
"F", # Pyflakes
86-
"I", # Isort
87-
"ISC", # flake8-implicit-str-concat
88-
"PLC", # Pylint Convention
89-
"PLE", # Pylint Error
90-
"PLR", # Pylint Refactor
91-
"PLW", # Pylint Warning
92-
"RUF100", # Ruff unused-noqa
93-
"S", # flake8-bandit (security)
94-
"T20", # flake8-print
95-
"W", # pycodestyle warning
96-
]
97-
98-
[tool.ruff.lint.per-file-ignores]
99-
"tests/*" = [
100-
"S101", # use of assert
101-
]
102-
"src/notebook/*" = [
103-
"T20", # allow print in notebooks
104-
"D", # allow missing docstrings in notebooks
105-
]
106-
107-
[tool.ruff.lint.pydocstyle]
108-
convention = "google"

dev/uv.lock

Lines changed: 0 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)