Skip to content

Commit 62e9462

Browse files
committed
fix code format
Signed-off-by: Aayush Kumar <aayush214.kumar@gmail.com>
1 parent 8476d63 commit 62e9462

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

scanpipe/models.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2814,9 +2814,7 @@ def __str__(self):
28142814

28152815
def save(self, *args, **kwargs):
28162816
if self.path and not self.parent_path:
2817-
self.parent_path = parent_directory(
2818-
str(self.path), with_trail=False
2819-
)
2817+
self.parent_path = parent_directory(str(self.path), with_trail=False)
28202818
super().save(*args, **kwargs)
28212819

28222820
def get_absolute_url(self):

scanpipe/tests/test_pipelines.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -879,9 +879,7 @@ def test_scanpipe_scan_codebase_creates_top_level_paths(self):
879879

880880
expected_top_level_paths = ["is-npm-1.0.0.tgz", "is-npm-1.0.0.tgz-extract"]
881881

882-
top_level_resources = project1.codebaseresources.filter(
883-
parent_path=None
884-
)
882+
top_level_resources = project1.codebaseresources.filter(parent_path=None)
885883
top_level_paths = [res.path for res in top_level_resources]
886884

887885
self.assertListEqual(top_level_paths, expected_top_level_paths)
@@ -907,9 +905,7 @@ def test_scanpipe_scan_codebase_creates_parent_path_field(self):
907905
"is-npm-1.0.0.tgz-extract/package/readme.md",
908906
]
909907

910-
top_level_resources = project1.codebaseresources.filter(
911-
parent_path=None
912-
)
908+
top_level_resources = project1.codebaseresources.filter(parent_path=None)
913909
top_level_paths = [res.path for res in top_level_resources]
914910

915911
self.assertListEqual(top_level_paths, expected_top_level_paths)

0 commit comments

Comments
 (0)