Skip to content

Commit 27a072d

Browse files
committed
ruff target-version py310
1 parent 848665e commit 27a072d

File tree

1 file changed

+32
-22
lines changed

1 file changed

+32
-22
lines changed

pyproject.toml

Lines changed: 32 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -69,20 +69,20 @@ asyncio_default_fixture_loop_scope = "function"
6969

7070
# Enable docstring linting using the google style guide
7171
[tool.ruff.lint]
72-
select = ["ALL" ]
72+
select = ["ALL"]
7373
ignore = [
74-
"A001", # Allow using words like min as variable names
75-
"A002", # Allow using words like filter as variable names
76-
"ANN401", # Allow Any for wrapper classes
77-
"COM812", # Recommended to ignore these rules when using with ruff-format
78-
"FIX002", # Allow TODO lines - consider removing at some point
79-
"FBT001", # Allow boolean positional args
80-
"FBT002", # Allow boolean positional args
81-
"ISC001", # Recommended to ignore these rules when using with ruff-format
82-
"SLF001", # Allow accessing private members
74+
"A001", # Allow using words like min as variable names
75+
"A002", # Allow using words like filter as variable names
76+
"ANN401", # Allow Any for wrapper classes
77+
"COM812", # Recommended to ignore these rules when using with ruff-format
78+
"FIX002", # Allow TODO lines - consider removing at some point
79+
"FBT001", # Allow boolean positional args
80+
"FBT002", # Allow boolean positional args
81+
"ISC001", # Recommended to ignore these rules when using with ruff-format
82+
"SLF001", # Allow accessing private members
8383
"TD002",
84-
"TD003", # Allow TODO lines
85-
"UP007", # Disallowing Union is pedantic
84+
"TD003", # Allow TODO lines
85+
"UP007", # Disallowing Union is pedantic
8686
# TODO: Enable all of the following, but this PR is getting too large already
8787
"PLR0913",
8888
"TRY003",
@@ -101,6 +101,9 @@ ignore = [
101101
"UP035",
102102
]
103103

104+
[tool.ruff]
105+
target-version = "py310"
106+
104107
[tool.ruff.lint.pydocstyle]
105108
convention = "google"
106109

@@ -126,20 +129,27 @@ max-doc-length = 88
126129
]
127130
"examples/*" = ["D", "W505", "E501", "T201", "S101"]
128131
"dev/*" = ["D", "E", "T", "S", "PLR", "C", "SIM", "UP", "EXE", "N817"]
129-
"benchmarks/*" = ["D", "F", "T", "BLE", "FURB", "PLR", "E", "TD", "TRY", "S", "SIM", "EXE", "UP"]
132+
"benchmarks/*" = [
133+
"D",
134+
"F",
135+
"T",
136+
"BLE",
137+
"FURB",
138+
"PLR",
139+
"E",
140+
"TD",
141+
"TRY",
142+
"S",
143+
"SIM",
144+
"EXE",
145+
"UP",
146+
]
130147
"docs/*" = ["D"]
131148

132149
[tool.codespell]
133-
skip = [
134-
"./target",
135-
"uv.lock",
136-
"./python/tests/test_functions.py"
137-
]
150+
skip = ["./target", "uv.lock", "./python/tests/test_functions.py"]
138151
count = true
139-
ignore-words-list = [
140-
"ans",
141-
"IST"
142-
]
152+
ignore-words-list = ["ans", "IST"]
143153

144154
[dependency-groups]
145155
dev = [

0 commit comments

Comments
 (0)