Skip to content

Commit 295f3c8

Browse files
committed
Linter: Update to ruff 0.15.0
1 parent 0e0adeb commit 295f3c8

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ dev = [
6161
"mypy<1.20",
6262
"pytest<10",
6363
"pytz",
64-
"ruff<0.15",
64+
"ruff<0.16",
6565
]
6666
docs = [
6767
"sphinx",

src/crate/client/cursor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def next(self):
193193
else:
194194
raise ProgrammingError("Cursor closed")
195195

196-
__next__ = next
196+
__next__ = next # noqa: A003
197197

198198
@property
199199
def description(self):

tests/client/test_cursor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,9 @@ def test_execute_custom_converter(mocked_connection):
250250
# Extends the DefaultTypeConverter
251251
converter = DefaultTypeConverter(
252252
{
253-
DataType.BIT: lambda value: value is not None
254-
and int(value[2:-1], 2)
255-
or None
253+
DataType.BIT: lambda value: (
254+
value is not None and int(value[2:-1], 2) or None
255+
)
256256
}
257257
)
258258
cursor = mocked_connection.cursor(converter=converter)

tests/conftest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,6 @@ def doctest_node():
227227

228228

229229
class HttpsServer(HTTPServer):
230-
231230
PORT = 65534
232231
HOST = "localhost"
233232
CERT_FILE = assets_path("pki/server_valid.pem")

0 commit comments

Comments
 (0)