mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
fix style errors
This commit is contained in:
parent
4a8e4b0bfb
commit
793009215c
@ -22,8 +22,8 @@ from django.dispatch.dispatcher import receiver
|
|||||||
from django.urls import reverse
|
from django.urls import reverse
|
||||||
from django.utils.translation import gettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
|
|
||||||
from djmoney.contrib.exchange.models import convert_money
|
|
||||||
from djmoney.contrib.exchange.exceptions import MissingRate
|
from djmoney.contrib.exchange.exceptions import MissingRate
|
||||||
|
from djmoney.contrib.exchange.models import convert_money
|
||||||
from djmoney.money import Money
|
from djmoney.money import Money
|
||||||
from error_report.models import Error
|
from error_report.models import Error
|
||||||
from markdownx.models import MarkdownxField
|
from markdownx.models import MarkdownxField
|
||||||
@ -43,7 +43,6 @@ from plugin.models import MetadataMixin
|
|||||||
from stock import models as stock_models
|
from stock import models as stock_models
|
||||||
from users import models as UserModels
|
from users import models as UserModels
|
||||||
|
|
||||||
|
|
||||||
logger = logging.getLogger('inventree')
|
logger = logging.getLogger('inventree')
|
||||||
|
|
||||||
|
|
||||||
|
6
tasks.py
6
tasks.py
@ -554,9 +554,9 @@ def test_translations(c):
|
|||||||
|
|
||||||
# complie regex
|
# complie regex
|
||||||
reg = re.compile(
|
reg = re.compile(
|
||||||
r"[a-zA-Z0-9]{1}"+ # match any single letter and number
|
r"[a-zA-Z0-9]{1}" + # match any single letter and number # noqa: W504
|
||||||
r"(?![^{\(\<]*[}\)\>])"+ # that is not inside curly brackets, brackets or a tag
|
r"(?![^{\(\<]*[}\)\>])" + # that is not inside curly brackets, brackets or a tag # noqa: W504
|
||||||
r"(?<![^\%][^\(][)][a-z])"+ # that is not a specially formatted variable with singles
|
r"(?<![^\%][^\(][)][a-z])" + # that is not a specially formatted variable with singles # noqa: W504
|
||||||
r"(?![^\\][\n])" # that is not a newline
|
r"(?![^\\][\n])" # that is not a newline
|
||||||
)
|
)
|
||||||
last_string = ''
|
last_string = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user