Skip to content

Commit faaaa93

Browse files
committed
fix code format
Signed-off-by: Aayush Kumar <aayush214.kumar@gmail.com>
1 parent 76e2b3a commit faaaa93

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
@@ -2798,9 +2798,7 @@ def __str__(self):
27982798

27992799
def save(self, *args, **kwargs):
28002800
if self.path and not self.parent_path:
2801-
self.parent_path = parent_directory(
2802-
str(self.path), with_trail=False
2803-
)
2801+
self.parent_path = parent_directory(str(self.path), with_trail=False)
28042802
super().save(*args, **kwargs)
28052803

28062804
@property

scanpipe/tests/test_pipelines.py

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

877877
expected_top_level_paths = ["is-npm-1.0.0.tgz", "is-npm-1.0.0.tgz-extract"]
878878

879-
top_level_resources = project1.codebaseresources.filter(
880-
parent_path=None
881-
)
879+
top_level_resources = project1.codebaseresources.filter(parent_path=None)
882880
top_level_paths = [res.path for res in top_level_resources]
883881

884882
self.assertListEqual(top_level_paths, expected_top_level_paths)
@@ -904,9 +902,7 @@ def test_scanpipe_scan_codebase_creates_parent_path_field(self):
904902
"is-npm-1.0.0.tgz-extract/package/readme.md",
905903
]
906904

907-
top_level_resources = project1.codebaseresources.filter(
908-
parent_path=None
909-
)
905+
top_level_resources = project1.codebaseresources.filter(parent_path=None)
910906
top_level_paths = [res.path for res in top_level_resources]
911907

912908
self.assertListEqual(top_level_paths, expected_top_level_paths)

0 commit comments

Comments
 (0)