Skip to content

Commit d009eeb

Browse files
Fix tox error
Signed-off-by: Wonjae Park <[email protected]>
1 parent 97c5a97 commit d009eeb

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

requirements-dev.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
tox
22
pytest
33
pytest-cov
4-
pytest-flake8
5-
flake8==3.9.2
4+
pytest-flake8>=1.1.0
5+
flake8>=5.0.0
66
dataclasses
77
scanoss
8-
importlib-metadata==4.12.0
8+
importlib-metadata>=6.0.0
99
pytest-xdist

src/fosslight_source/_scan_item.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def get_print_array(self) -> list:
9797
return print_rows
9898

9999
def __eq__(self, other: object) -> bool:
100-
if type(other) == str:
100+
if isinstance(other, str):
101101
return self.source_name_or_path == other
102102
else:
103103
return self.source_name_or_path == other.source_name_or_path

src/fosslight_source/cli.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343

4444

4545
def main() -> None:
46-
global logger
4746
_result_log = {}
4847

4948
path_to_scan = os.getcwd()

0 commit comments

Comments
 (0)