2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-13 10:35:40 +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
7 changed files with 12 additions and 17 deletions

View File

@ -35,7 +35,7 @@ def check_invalid_tag(data):
for result in results:
err_count += 1
print(f' - Error on line {idx+1}: %{{{result[0]}')
print(f' - Error on line {idx + 1}: %{{{result[0]}')
return err_count
@ -62,7 +62,7 @@ def check_prohibited_tags(data):
for idx, line in enumerate(data):
for tag in re.findall(pattern, line):
if tag not in allowed_tags:
print(f" > Line {idx+1} contains prohibited template tag '{tag}'")
print(f" > Line {idx + 1} contains prohibited template tag '{tag}'")
err_count += 1
return err_count
@ -94,7 +94,7 @@ for filename in pathlib.Path(js_dynamic_dir).rglob('*.js'):
if tag in line:
err_count += 1
print(f" > Error on line {idx+1}: Prohibited tag '{tag}' found")
print(f" > Error on line {idx + 1}: Prohibited tag '{tag}' found")
if errors > 0: