Compare commits

..

1 commit

Author SHA1 Message Date
dependabot[bot]
5016defe91
Merge a45e4aced6 into e1b0b3de64 2023-12-11 18:10:15 +00:00
5 changed files with 10 additions and 10 deletions

View file

@ -44,7 +44,7 @@ jobs:
# Initializes the CodeQL tools for scanning. # Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL - name: Initialize CodeQL
uses: github/codeql-action/init@v3 uses: github/codeql-action/init@v2
with: with:
languages: ${{ matrix.language }} languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file. # If you wish to specify custom queries, you can do so here or in a config file.
@ -58,7 +58,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below) # If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild - name: Autobuild
uses: github/codeql-action/autobuild@v3 uses: github/codeql-action/autobuild@v2
# Command-line programs to run using the OS shell. # Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@ -71,6 +71,6 @@ jobs:
# ./location_of_script_within_repo/buildscript.sh # ./location_of_script_within_repo/buildscript.sh
- name: Perform CodeQL Analysis - name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3 uses: github/codeql-action/analyze@v2
with: with:
category: "/language:${{matrix.language}}" category: "/language:${{matrix.language}}"

View file

@ -40,17 +40,17 @@ repos:
hooks: hooks:
- id: djhtml - id: djhtml
- repo: https://github.com/astral-sh/ruff-pre-commit - repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.7 rev: v0.1.6
hooks: hooks:
- id: ruff - id: ruff
args: [--fix] args: [--fix]
- repo: https://github.com/pre-commit/mirrors-prettier - repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.4 rev: v3.1.0
hooks: hooks:
- id: prettier - id: prettier
types_or: [javascript, css] types_or: [javascript, css]
- repo: https://github.com/pre-commit/mirrors-eslint - repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.55.0 rev: v8.54.0
hooks: hooks:
- id: eslint - id: eslint
args: [--fix] args: [--fix]
@ -59,7 +59,7 @@ repos:
- eslint@8.36.0 - eslint@8.36.0
- eslint-config-prettier@8.5.0 - eslint-config-prettier@8.5.0
- repo: https://github.com/tox-dev/pyproject-fmt - repo: https://github.com/tox-dev/pyproject-fmt
rev: 1.5.3 rev: 1.5.1
hooks: hooks:
- id: pyproject-fmt - id: pyproject-fmt
- repo: https://github.com/jazzband/pip-tools - repo: https://github.com/jazzband/pip-tools

View file

@ -4,7 +4,7 @@ from django.db import migrations, models
def forwards(apps, schema_editor): def forwards(apps, schema_editor):
BasketItem = apps.get_model("purchase", "BasketItem") BasketItem = apps.get_model("purchase", "BasketItem") # noqa: N806
items = ( items = (
BasketItem.objects.using(schema_editor.connection.alias) BasketItem.objects.using(schema_editor.connection.alias)
.all() .all()

View file

@ -5,7 +5,7 @@ from django.db import migrations, models
def delete_baskets_without_payment_method(apps, schema_editor): def delete_baskets_without_payment_method(apps, schema_editor):
Basket = apps.get_model("purchase", "Basket") Basket = apps.get_model("purchase", "Basket") # noqa: N806
Basket.objects.using(schema_editor.connection.alias).filter( Basket.objects.using(schema_editor.connection.alias).filter(
payment_method=None, payment_method=None,
).delete() ).delete()

View file

@ -5,7 +5,7 @@ from django.db import migrations, models
def create_default_categories(apps, schema_editor): def create_default_categories(apps, schema_editor):
ProductCategory = apps.get_model("purchase", "ProductCategory") ProductCategory = apps.get_model("purchase", "ProductCategory") # noqa: N806
ProductCategory.objects.using(schema_editor.connection.alias).create( ProductCategory.objects.using(schema_editor.connection.alias).create(
name="default", name="default",
color_hue=0, color_hue=0,