Skip to content

Commit b4477b6

Browse files
ci(lint): bump Python to 3.13 and fix Ruff C420
- Bump Python version in GitHub Actions matrix from 3.12 to 3.13 - Adjust Ruff rule C420 (redundant return in generator) to prevent false positives
1 parent c806a49 commit b4477b6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/linting.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
python-version: ["3.12"]
14+
python-version: ["3.13"]
1515
steps:
1616
- name: Checkout repository
1717
uses: actions/checkout@v3

promo_code/user/validators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def __call__(self, value):
8282

8383
if missing_fields:
8484
raise rest_framework.serializers.ValidationError(
85-
{field: 'This field is required.' for field in missing_fields},
85+
dict.fromkeys(missing_fields, 'This field is required.'),
8686
)
8787

8888
serializer = self.__class__(data=value)

0 commit comments

Comments
 (0)