Skip to content

Commit ee393e2

Browse files
committed
ruff.toml -> pyproject
1 parent 8629e13 commit ee393e2

File tree

2 files changed

+22
-20
lines changed

2 files changed

+22
-20
lines changed

.ruff.toml

Lines changed: 0 additions & 20 deletions
This file was deleted.

pyproject.toml

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

0 commit comments

Comments
 (0)