2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-12 01:55:39 +00:00

PEP fixes for ci / maintenance scripts

This commit is contained in:
Matthias
2021-11-19 21:50:41 +01:00
parent 4e113798b4
commit 9abbb6cb5e
4 changed files with 11 additions and 8 deletions

View File

@ -28,6 +28,7 @@ print("=================================")
print("Checking static javascript files:")
print("=================================")
def check_invalid_tag(data):
pattern = r"{%(\w+)"
@ -45,6 +46,7 @@ def check_invalid_tag(data):
return err_count
def check_prohibited_tags(data):
allowed_tags = [
@ -78,7 +80,7 @@ def check_prohibited_tags(data):
has_trans = True
if not has_trans:
print(f" > file is missing 'trans' tags")
print(" > file is missing 'trans' tags")
err_count += 1
return err_count