2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-28 11:36:44 +00:00

Bump CI/pre-commit versions (#6522)

* bump CI versions
and run new autofixes

* fix reqs
This commit is contained in:
Matthias Mair 2024-02-19 23:47:57 +00:00 committed by GitHub
parent 6e932f85cf
commit ebe01530e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 12 additions and 17 deletions

View File

@ -16,7 +16,7 @@ repos:
- id: check-yaml - id: check-yaml
- id: mixed-line-ending - id: mixed-line-ending
- repo: https://github.com/astral-sh/ruff-pre-commit - repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.1 rev: v0.2.2
hooks: hooks:
- id: ruff-format - id: ruff-format
args: [--preview] args: [--preview]
@ -26,7 +26,7 @@ repos:
--preview --preview
] ]
- repo: https://github.com/jazzband/pip-tools - repo: https://github.com/jazzband/pip-tools
rev: 7.3.0 rev: 7.4.0
hooks: hooks:
- id: pip-compile - id: pip-compile
name: pip-compile requirements-dev.in name: pip-compile requirements-dev.in
@ -60,7 +60,7 @@ repos:
- "prettier@^2.4.1" - "prettier@^2.4.1"
- "@trivago/prettier-plugin-sort-imports" - "@trivago/prettier-plugin-sort-imports"
- repo: https://github.com/pre-commit/mirrors-eslint - repo: https://github.com/pre-commit/mirrors-eslint
rev: "v9.0.0-alpha.2" rev: "v9.0.0-beta.0"
hooks: hooks:
- id: eslint - id: eslint
additional_dependencies: additional_dependencies:

View File

@ -421,7 +421,7 @@ def progress_bar(val, max_val, *args, **kwargs):
style_tags.append(f'max-width: {max_width};') style_tags.append(f'max-width: {max_width};')
html = f""" html = f"""
<div id='{item_id}' class='progress' style='{" ".join(style_tags)}'> <div id='{item_id}' class='progress' style='{' '.join(style_tags)}'>
<div class='progress-bar {style}' role='progressbar' aria-valuemin='0' aria-valuemax='100' style='width:{percent}%'></div> <div class='progress-bar {style}' role='progressbar' aria-valuemin='0' aria-valuemax='100' style='width:{percent}%'></div>
<div class='progress-value'>{val} / {max_val}</div> <div class='progress-value'>{val} / {max_val}</div>
</div> </div>

View File

@ -261,7 +261,7 @@ class InvenTreeLabelSheetPlugin(LabelPrintingMixin, SettingsMixin, InvenTreePlug
}} }}
.label-sheet-cell {{ .label-sheet-cell {{
border: {"1px solid #000;" if border else "0mm;"} border: {'1px solid #000;' if border else '0mm;'}
width: {label_width}mm; width: {label_width}mm;
height: {label_height}mm; height: {label_height}mm;
padding: 0mm; padding: 0mm;

View File

@ -22,9 +22,7 @@ backoff==2.2.1
# opentelemetry-exporter-otlp-proto-grpc # opentelemetry-exporter-otlp-proto-grpc
# opentelemetry-exporter-otlp-proto-http # opentelemetry-exporter-otlp-proto-http
bleach[css]==6.1.0 bleach[css]==6.1.0
# via # via django-markdownify
# bleach
# django-markdownify
brotli==1.1.0 brotli==1.1.0
# via fonttools # via fonttools
certifi==2024.2.2 certifi==2024.2.2
@ -175,9 +173,7 @@ et-xmlfile==1.1.0
feedparser==6.0.11 feedparser==6.0.11
# via -r requirements.in # via -r requirements.in
fonttools[woff]==4.47.2 fonttools[woff]==4.47.2
# via # via weasyprint
# fonttools
# weasyprint
googleapis-common-protos==1.62.0 googleapis-common-protos==1.62.0
# via # via
# opentelemetry-exporter-otlp-proto-grpc # opentelemetry-exporter-otlp-proto-grpc
@ -304,7 +300,6 @@ pyjwt[crypto]==2.8.0
# via # via
# django-allauth # django-allauth
# djangorestframework-simplejwt # djangorestframework-simplejwt
# pyjwt
pyphen==0.14.0 pyphen==0.14.0
# via weasyprint # via weasyprint
pypng==0.20220715.0 pypng==0.20220715.0