mirror of
https://github.com/Crocmagnon/checkout.git
synced 2024-11-22 08:08:04 +01:00
Compare commits
3 commits
1bcac52b17
...
999cb28a95
Author | SHA1 | Date | |
---|---|---|---|
|
999cb28a95 | ||
|
2376fc7194 | ||
|
c2a174cbcf |
7 changed files with 44 additions and 28 deletions
|
@ -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.6
|
rev: v0.1.7
|
||||||
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: v3.1.0
|
rev: v4.0.0-alpha.4
|
||||||
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.54.0
|
rev: v8.55.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.1
|
rev: 1.5.3
|
||||||
hooks:
|
hooks:
|
||||||
- id: pyproject-fmt
|
- id: pyproject-fmt
|
||||||
- repo: https://github.com/jazzband/pip-tools
|
- repo: https://github.com/jazzband/pip-tools
|
||||||
|
|
|
@ -18,11 +18,11 @@ contourpy==1.2.0
|
||||||
# via matplotlib
|
# via matplotlib
|
||||||
crispy-bootstrap5==2023.10
|
crispy-bootstrap5==2023.10
|
||||||
# via -r requirements.in
|
# via -r requirements.in
|
||||||
cryptography==41.0.5
|
cryptography==41.0.7
|
||||||
# via django-anymail
|
# via django-anymail
|
||||||
cycler==0.12.1
|
cycler==0.12.1
|
||||||
# via matplotlib
|
# via matplotlib
|
||||||
django==4.2.7
|
django==4.2.8
|
||||||
# via
|
# via
|
||||||
# -r requirements.in
|
# -r requirements.in
|
||||||
# crispy-bootstrap5
|
# crispy-bootstrap5
|
||||||
|
@ -52,9 +52,9 @@ django-htmx==1.17.2
|
||||||
# via -r requirements.in
|
# via -r requirements.in
|
||||||
django-solo==2.1.0
|
django-solo==2.1.0
|
||||||
# via -r requirements.in
|
# via -r requirements.in
|
||||||
fonttools==4.45.1
|
fonttools==4.46.0
|
||||||
# via matplotlib
|
# via matplotlib
|
||||||
freezegun==1.2.2
|
freezegun==1.3.1
|
||||||
# via -r requirements.in
|
# via -r requirements.in
|
||||||
gunicorn==21.2.0
|
gunicorn==21.2.0
|
||||||
# via -r requirements.in
|
# via -r requirements.in
|
||||||
|
|
|
@ -4,15 +4,20 @@
|
||||||
#
|
#
|
||||||
# pip-compile --allow-unsafe requirements-dev.in
|
# pip-compile --allow-unsafe requirements-dev.in
|
||||||
#
|
#
|
||||||
|
aiohttp==3.9.1
|
||||||
|
# via black
|
||||||
|
aiosignal==1.3.1
|
||||||
|
# via aiohttp
|
||||||
asgiref==3.7.2
|
asgiref==3.7.2
|
||||||
# via
|
# via
|
||||||
# -c constraints.txt
|
# -c constraints.txt
|
||||||
# django
|
# django
|
||||||
attrs==23.1.0
|
attrs==23.1.0
|
||||||
# via
|
# via
|
||||||
|
# aiohttp
|
||||||
# outcome
|
# outcome
|
||||||
# trio
|
# trio
|
||||||
black==23.11.0
|
black==23.12.0
|
||||||
# via -r requirements-dev.in
|
# via -r requirements-dev.in
|
||||||
build==1.0.3
|
build==1.0.3
|
||||||
# via pip-tools
|
# via pip-tools
|
||||||
|
@ -31,31 +36,36 @@ click==8.1.7
|
||||||
# via
|
# via
|
||||||
# black
|
# black
|
||||||
# pip-tools
|
# pip-tools
|
||||||
coverage[toml]==7.3.2
|
coverage[toml]==7.3.3
|
||||||
# via
|
# via
|
||||||
# coverage
|
# coverage
|
||||||
# pytest-cov
|
# pytest-cov
|
||||||
distlib==0.3.7
|
distlib==0.3.8
|
||||||
# via virtualenv
|
# via virtualenv
|
||||||
django==4.2.7
|
django==4.2.8
|
||||||
# via
|
# via
|
||||||
# -c constraints.txt
|
# -c constraints.txt
|
||||||
# model-bakery
|
# model-bakery
|
||||||
factory-boy==3.3.0
|
factory-boy==3.3.0
|
||||||
# via -r requirements-dev.in
|
# via -r requirements-dev.in
|
||||||
faker==20.1.0
|
faker==21.0.0
|
||||||
# via factory-boy
|
# via factory-boy
|
||||||
filelock==3.13.1
|
filelock==3.13.1
|
||||||
# via virtualenv
|
# via virtualenv
|
||||||
|
frozenlist==1.4.1
|
||||||
|
# via
|
||||||
|
# aiohttp
|
||||||
|
# aiosignal
|
||||||
h11==0.14.0
|
h11==0.14.0
|
||||||
# via wsproto
|
# via wsproto
|
||||||
identify==2.5.32
|
identify==2.5.33
|
||||||
# via pre-commit
|
# via pre-commit
|
||||||
idna==3.6
|
idna==3.6
|
||||||
# via
|
# via
|
||||||
# -c constraints.txt
|
# -c constraints.txt
|
||||||
# requests
|
# requests
|
||||||
# trio
|
# trio
|
||||||
|
# yarl
|
||||||
iniconfig==2.0.0
|
iniconfig==2.0.0
|
||||||
# via pytest
|
# via pytest
|
||||||
invoke==2.2.0
|
invoke==2.2.0
|
||||||
|
@ -66,6 +76,10 @@ markupsafe==2.1.3
|
||||||
# via jinja2
|
# via jinja2
|
||||||
model-bakery==1.17.0
|
model-bakery==1.17.0
|
||||||
# via -r requirements-dev.in
|
# via -r requirements-dev.in
|
||||||
|
multidict==6.0.4
|
||||||
|
# via
|
||||||
|
# aiohttp
|
||||||
|
# yarl
|
||||||
mypy-extensions==1.0.0
|
mypy-extensions==1.0.0
|
||||||
# via black
|
# via black
|
||||||
nodeenv==1.8.0
|
nodeenv==1.8.0
|
||||||
|
@ -78,17 +92,17 @@ packaging==23.2
|
||||||
# black
|
# black
|
||||||
# build
|
# build
|
||||||
# pytest
|
# pytest
|
||||||
pathspec==0.11.2
|
pathspec==0.12.1
|
||||||
# via black
|
# via black
|
||||||
pip-tools==7.3.0
|
pip-tools==7.3.0
|
||||||
# via -r requirements-dev.in
|
# via -r requirements-dev.in
|
||||||
platformdirs==4.0.0
|
platformdirs==4.1.0
|
||||||
# via
|
# via
|
||||||
# black
|
# black
|
||||||
# virtualenv
|
# virtualenv
|
||||||
pluggy==1.3.0
|
pluggy==1.3.0
|
||||||
# via pytest
|
# via pytest
|
||||||
pre-commit==3.5.0
|
pre-commit==3.6.0
|
||||||
# via -r requirements-dev.in
|
# via -r requirements-dev.in
|
||||||
py==1.11.0
|
py==1.11.0
|
||||||
# via -r requirements-dev.in
|
# via -r requirements-dev.in
|
||||||
|
@ -131,7 +145,7 @@ requests==2.31.0
|
||||||
# -c constraints.txt
|
# -c constraints.txt
|
||||||
# pytest-base-url
|
# pytest-base-url
|
||||||
# pytest-selenium
|
# pytest-selenium
|
||||||
ruff==0.1.6
|
ruff==0.1.8
|
||||||
# via -r requirements-dev.in
|
# via -r requirements-dev.in
|
||||||
selenium==4.9.1
|
selenium==4.9.1
|
||||||
# via
|
# via
|
||||||
|
@ -151,7 +165,7 @@ sqlparse==0.4.4
|
||||||
# django
|
# django
|
||||||
tenacity==8.2.3
|
tenacity==8.2.3
|
||||||
# via pytest-selenium
|
# via pytest-selenium
|
||||||
trio==0.23.1
|
trio==0.23.2
|
||||||
# via
|
# via
|
||||||
# selenium
|
# selenium
|
||||||
# trio-websocket
|
# trio-websocket
|
||||||
|
@ -163,15 +177,17 @@ urllib3[socks]==2.1.0
|
||||||
# requests
|
# requests
|
||||||
# selenium
|
# selenium
|
||||||
# urllib3
|
# urllib3
|
||||||
virtualenv==20.24.7
|
virtualenv==20.25.0
|
||||||
# via pre-commit
|
# via pre-commit
|
||||||
wheel==0.42.0
|
wheel==0.42.0
|
||||||
# via pip-tools
|
# via pip-tools
|
||||||
wsproto==1.2.0
|
wsproto==1.2.0
|
||||||
# via trio-websocket
|
# via trio-websocket
|
||||||
|
yarl==1.9.4
|
||||||
|
# via aiohttp
|
||||||
|
|
||||||
# The following packages are considered to be unsafe in a requirements file:
|
# The following packages are considered to be unsafe in a requirements file:
|
||||||
pip==23.3.1
|
pip==23.3.2
|
||||||
# via pip-tools
|
# via pip-tools
|
||||||
setuptools==69.0.2
|
setuptools==69.0.2
|
||||||
# via
|
# via
|
||||||
|
|
|
@ -18,11 +18,11 @@ contourpy==1.2.0
|
||||||
# via matplotlib
|
# via matplotlib
|
||||||
crispy-bootstrap5==2023.10
|
crispy-bootstrap5==2023.10
|
||||||
# via -r requirements.in
|
# via -r requirements.in
|
||||||
cryptography==41.0.5
|
cryptography==41.0.7
|
||||||
# via django-anymail
|
# via django-anymail
|
||||||
cycler==0.12.1
|
cycler==0.12.1
|
||||||
# via matplotlib
|
# via matplotlib
|
||||||
django==4.2.7
|
django==4.2.8
|
||||||
# via
|
# via
|
||||||
# -r requirements.in
|
# -r requirements.in
|
||||||
# crispy-bootstrap5
|
# crispy-bootstrap5
|
||||||
|
@ -52,9 +52,9 @@ django-htmx==1.17.2
|
||||||
# via -r requirements.in
|
# via -r requirements.in
|
||||||
django-solo==2.1.0
|
django-solo==2.1.0
|
||||||
# via -r requirements.in
|
# via -r requirements.in
|
||||||
fonttools==4.45.1
|
fonttools==4.46.0
|
||||||
# via matplotlib
|
# via matplotlib
|
||||||
freezegun==1.2.2
|
freezegun==1.3.1
|
||||||
# via -r requirements.in
|
# via -r requirements.in
|
||||||
gunicorn==21.2.0
|
gunicorn==21.2.0
|
||||||
# via -r requirements.in
|
# via -r requirements.in
|
||||||
|
|
|
@ -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") # noqa: N806
|
BasketItem = apps.get_model("purchase", "BasketItem")
|
||||||
items = (
|
items = (
|
||||||
BasketItem.objects.using(schema_editor.connection.alias)
|
BasketItem.objects.using(schema_editor.connection.alias)
|
||||||
.all()
|
.all()
|
||||||
|
|
|
@ -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") # noqa: N806
|
Basket = apps.get_model("purchase", "Basket")
|
||||||
Basket.objects.using(schema_editor.connection.alias).filter(
|
Basket.objects.using(schema_editor.connection.alias).filter(
|
||||||
payment_method=None,
|
payment_method=None,
|
||||||
).delete()
|
).delete()
|
||||||
|
|
|
@ -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") # noqa: N806
|
ProductCategory = apps.get_model("purchase", "ProductCategory")
|
||||||
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,
|
||||||
|
|
Loading…
Reference in a new issue