mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-27 01:00:53 +00:00
PEP fix
This commit is contained in:
@ -336,7 +336,7 @@ part_api_urls = [
|
||||
url(r'^category/', include(cat_api_urls)),
|
||||
url(r'^star/', include(part_star_api_urls)),
|
||||
|
||||
url(r'^(?P<pk>\d+)/', PartDetail.as_view(), name='api-part-detail'),
|
||||
url(r'^(?P<pk>\d+)/?', PartDetail.as_view(), name='api-part-detail'),
|
||||
|
||||
url(r'^.*$', PartList.as_view(), name='api-part-list'),
|
||||
]
|
||||
@ -344,7 +344,7 @@ part_api_urls = [
|
||||
|
||||
bom_api_urls = [
|
||||
# BOM Item Detail
|
||||
url('^(?P<pk>\d+)/', BomDetail.as_view(), name='api-bom-detail'),
|
||||
url(r'^(?P<pk>\d+)/?', BomDetail.as_view(), name='api-bom-detail'),
|
||||
|
||||
# Catch-all
|
||||
url(r'^.*$', BomList.as_view(), name='api-bom-list'),
|
||||
|
@ -3,7 +3,7 @@ ignore =
|
||||
# - W293 - blank lines contain whitespace
|
||||
W293,
|
||||
# - E501 - line too long (82 characters)
|
||||
E501,
|
||||
E501, E722
|
||||
# - C901 - function is too complex
|
||||
C901,
|
||||
exclude = .git,__pycache__,*/migrations/*
|
||||
|
Reference in New Issue
Block a user