Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
3 changes: 1 addition & 2 deletions main/storage.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import cssmin
import jsmin
from django.contrib.staticfiles.storage import ManifestStaticFilesStorage
from django.core.files.base import ContentFile
from django.utils.encoding import smart_str

import cssmin
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ruff check . is happy for me, why is the uv used ruff not?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could it be that you are running a different version of ruff? We are installing the latest in the CI:

pip install -r requirements.txt && pip install -r requirements_test.txt && pip install ruff

This is one of the benefits of managing dependencies with uv, since we are now locking a particular version and making sure we always run that version, without having a separate requirements for each group.



class MinifiedStaticFilesStorage(ManifestStaticFilesStorage):
"""
Expand Down
2 changes: 1 addition & 1 deletion mirrors/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def dictfetchall(cursor):
"Returns all rows from a cursor as a dict."
desc = cursor.description
return [
dict(zip([col[0] for col in desc], row))
dict(zip([col[0] for col in desc], row, strict=False))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to be a place where strict=True seems fine to use.

for row in cursor.fetchall()
]

Expand Down