Skip to content

Commit 5bb2b4d

Browse files
committed
Solve Codestyle problems
1 parent 1c9ccd5 commit 5bb2b4d

5 files changed

Lines changed: 15 additions & 11 deletions

File tree

server/app/interfaces/discovery.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""
2-
This module implements the Discovery interface defined in the 'Specification of the Asset Administration Shell Part 2 – Application Programming Interface'.
2+
This module implements the Discovery interface defined in the
3+
'Specification of the Asset Administration Shell Part 2
4+
– Application Programming Interface'.
35
"""
46

57
import json

server/app/interfaces/registry.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""
2-
This module implements the Registry interface defined in the 'Specification of the Asset Administration Shell Part 2 – Application Programming Interface'.
2+
This module implements the Registry interface defined in the
3+
'Specification of the Asset Administration Shell Part 2
4+
– Application Programming Interface'.
35
"""
46

57
from typing import Dict, Iterator, Tuple, Type

server/app/interfaces/repository.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def __init__(
181181
Rule(
182182
"/$metadata",
183183
methods=["GET"],
184-
endpoint=self.get_submodel_submodel_elements_id_short_path_metadata,
184+
endpoint=self.get_submodel_submodel_elements_id_short_path_metadata, # noqa: E501
185185
),
186186
Rule(
187187
"/$metadata",
@@ -191,7 +191,7 @@ def __init__(
191191
Rule(
192192
"/$reference",
193193
methods=["GET"],
194-
endpoint=self.get_submodel_submodel_elements_id_short_path_reference,
194+
endpoint=self.get_submodel_submodel_elements_id_short_path_reference, # noqa: E501
195195
),
196196
Rule("/$value", methods=["GET"], endpoint=self.not_implemented),
197197
Rule(
@@ -267,17 +267,17 @@ def __init__(
267267
Rule(
268268
"/<base64url:qualifier_type>",
269269
methods=["GET"],
270-
endpoint=self.get_submodel_submodel_element_qualifiers,
270+
endpoint=self.get_submodel_submodel_element_qualifiers, # noqa: E501
271271
),
272272
Rule(
273273
"/<base64url:qualifier_type>",
274274
methods=["PUT"],
275-
endpoint=self.put_submodel_submodel_element_qualifiers,
275+
endpoint=self.put_submodel_submodel_element_qualifiers, # noqa: E501
276276
),
277277
Rule(
278278
"/<base64url:qualifier_type>",
279279
methods=["DELETE"],
280-
endpoint=self.delete_submodel_submodel_element_qualifiers,
280+
endpoint=self.delete_submodel_submodel_element_qualifiers, # noqa: E501
281281
),
282282
],
283283
),
@@ -478,7 +478,7 @@ def _get_submodels(self, request: Request) -> Tuple[Iterator[model.Submodel], in
478478
semantic_id = request.args.get("semanticId")
479479
if semantic_id is not None:
480480
spec_semantic_id = HTTPApiDecoder.base64url_json(
481-
semantic_id, model.Reference, False # type: ignore[type-abstract]
481+
semantic_id, model.Reference, False # type: ignore[type-abstract]
482482
)
483483
submodels = filter(lambda sm: sm.semantic_id == spec_semantic_id, submodels)
484484
paginated_submodels, end_index = self._get_slice(request, submodels)

server/app/model/service_specification.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44

55
class ServiceSpecificationProfileEnum(str, Enum):
6-
AAS_REGISTRY_FULL = "https://admin-shell.io/aas/API/3/1/AssetAdministrationShellRegistryServiceSpecification/SSP-001"
7-
AAS_REGISTRY_READ = "https://admin-shell.io/aas/API/3/1/AssetAdministrationShellRegistryServiceSpecification/SSP-002"
6+
AAS_REGISTRY_FULL = "https://admin-shell.io/aas/API/3/1/AssetAdministrationShellRegistryServiceSpecification/SSP-001" # noqa: E501
7+
AAS_REGISTRY_READ = "https://admin-shell.io/aas/API/3/1/AssetAdministrationShellRegistryServiceSpecification/SSP-002" # noqa: E501
88
SUBMODEL_REGISTRY_FULL = "https://admin-shell.io/aas/API/3/1/SubmodelRegistryServiceSpecification/SSP-001"
99
SUBMODEL_REGISTRY_READ = "https://admin-shell.io/aas/API/3/1/SubmodelRegistryServiceSpecification/SSP-002"
1010
# TODO add other profiles

server/app/services/run_discovery.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ def persist_store():
2626

2727
atexit.register(persist_store)
2828

29-
application = DiscoveryAPI(discovery_store, **wsgi_optparams)
29+
application = DiscoveryAPI(discovery_store, **wsgi_optparams)

0 commit comments

Comments
 (0)