2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-28 03:26:45 +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: mixed-line-ending
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.1
rev: v0.2.2
hooks:
- id: ruff-format
args: [--preview]
@ -26,7 +26,7 @@ repos:
--preview
]
- repo: https://github.com/jazzband/pip-tools
rev: 7.3.0
rev: 7.4.0
hooks:
- id: pip-compile
name: pip-compile requirements-dev.in
@ -60,7 +60,7 @@ repos:
- "prettier@^2.4.1"
- "@trivago/prettier-plugin-sort-imports"
- repo: https://github.com/pre-commit/mirrors-eslint
rev: "v9.0.0-alpha.2"
rev: "v9.0.0-beta.0"
hooks:
- id: eslint
additional_dependencies:

View File

@ -421,7 +421,7 @@ def progress_bar(val, max_val, *args, **kwargs):
style_tags.append(f'max-width: {max_width};')
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-value'>{val} / {max_val}</div>
</div>

View File

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

View File

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