Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
Signed-off-by: d10n <[email protected]>
  • Loading branch information
d10n committed Nov 15, 2024
1 parent b06850a commit 1949c4c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion trestle/core/catalog/catalog_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -904,5 +904,5 @@ def generate_control_rule_info(self, part_id_map: Dict[str, Dict[str, str]], con
if len(dup_comp_uuids) > 0:
# throw an exception if there are repeated component uuids
for comp_uuid in dup_comp_uuids:
logger.error(f'Component uuid { comp_uuid } is duplicated')
logger.error(f'Component uuid {comp_uuid} is duplicated')
raise TrestleError('Component uuids cannot be duplicated between different component definitions')
4 changes: 2 additions & 2 deletions trestle/transforms/implementations/tanium.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def transform(self, blob: str) -> Results:
results.__root__ = tanium_oscal_factory.results
ts1 = datetime.datetime.now()
self._analysis = tanium_oscal_factory.analysis
self._analysis.append(f'transform time: {ts1-ts0}')
self._analysis.append(f'transform time: {ts1 - ts0}')
return results


Expand Down Expand Up @@ -455,7 +455,7 @@ def _batch_observations(self, index: int) -> Dict[str, List[Observation]]:
start = index * batch_size
end = (index + 1) * batch_size
end = min(end, len(self._rule_use_list))
logger.debug(f'start: {start} end: {end-1}')
logger.debug(f'start: {start} end: {end - 1}')
# process just the one chunk
for i in range(start, end):
rule_use = self._rule_use_list[i]
Expand Down

0 comments on commit 1949c4c

Please sign in to comment.