Skip to content

Commit 4773b5d

Browse files
committed
ruff.toml, exclude benchmarks
1 parent c09315d commit 4773b5d

File tree

3 files changed

+19
-18
lines changed

3 files changed

+19
-18
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ repos:
55
- id: ruff-check
66
name: Run Ruff (lint)
77
args: [--exit-non-zero-on-fix]
8+
exclude: ^pyperformance/data-files/

.ruff.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
target-version = "py310"
2+
3+
exclude = ["pyperformance/data-files/"]
4+
5+
[lint]
6+
select = [
7+
"E",
8+
"F",
9+
]
10+
11+
ignore = [
12+
"E402", # module level import not at top of file
13+
"E501", # line too long
14+
"E701", # multiple statements on one line (colon)
15+
"E722", # do not use bare 'except'
16+
"E741", # ambiguous variable name
17+
"F405" # name may be undefined, or defined from star imports
18+
]

pyproject.toml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -104,21 +104,3 @@ exclude = [
104104
[[tool.mypy.overrides]]
105105
module = "pyperf"
106106
ignore_missing_imports = true
107-
108-
[tool.ruff]
109-
target-version = "py310"
110-
111-
[tool.ruff.lint]
112-
ignore = [
113-
"E402", # module level import not at top of file
114-
"E501", # line too long
115-
"E701", # multiple statements on one line (colon)
116-
"E722", # do not use bare 'except'
117-
"E741", # ambiguous variable name
118-
"F405" # name may be undefined, or defined from star imports
119-
]
120-
121-
select = [
122-
"E",
123-
"F",
124-
]

0 commit comments

Comments
 (0)