Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/django-cf/django_cf/db/base_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def last_executed_query(self, cursor, sql, params):

def bulk_insert_sql(self, fields, placeholder_rows):
placeholder_rows_sql = (", ".join(row) for row in placeholder_rows)
values_sql = ", ".join("(%s)" % sql for sql in placeholder_rows_sql)
values_sql = ", ".join(f"({sql})" for sql in placeholder_rows_sql)
return "VALUES " + values_sql


Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import asyncio
import contextlib
import json

import pytest
from pyodide.ffi import create_proxy, to_js
Expand Down Expand Up @@ -61,9 +62,6 @@ async def _ws_connect(path):
)


import json


async def _events():
response = await asyncio.wait_for(
env.SELF.fetch("http://example.com/ws-events"), TIMEOUT_S
Expand Down
8 changes: 2 additions & 6 deletions ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,11 @@ select = [
]
ignore = [
"C901", # Too complex
"E402",
"E501",
"E731",
"E741",
"E501", # Line too long
"PLR0911", # Too many return statements
"PLR0915", # Too many statements
"PLR2004", # Magic value
"PLW2901",
"UP031",
"PLW2901", # loop variable overwritten by assignment
"UP038", # Use X | Y instead of (X, Y)
]
flake8-comprehensions.allow-dict-calls-with-keyword-arguments = true
Loading