Skip to content

Commit afba38a

Browse files
style: format code with Black
This commit fixes the style issues introduced in 7bbffdf according to the output from Black. Details: #19
1 parent 7bbffdf commit afba38a

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

codeinsight_sdk/models.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from dataclasses_json import DataClassJsonMixin, dataclass_json
66
from typing import Any, Optional, List, Dict
77

8+
89
@dataclass
910
class Project(DataClassJsonMixin):
1011
id: int
@@ -26,6 +27,7 @@ class Vulnerability(DataClassJsonMixin):
2627
vulnerabilityCvssV3Score: int
2728
vulnerabilityCvssV3Severity: str
2829

30+
2931
@dataclass
3032
class ProjectInventoryItem(DataClassJsonMixin):
3133
itemNumber: int
@@ -45,12 +47,14 @@ class ProjectInventoryItem(DataClassJsonMixin):
4547
vulnerabilitySummary: Optional[List[Dict[str, Dict]]] = None
4648
filePaths: Optional[List[str]] = None
4749

48-
@dataclass_json #Trying this style instead of DataClassJsonMixin
50+
51+
@dataclass_json # Trying this style instead of DataClassJsonMixin
4952
@dataclass
50-
class ProjectInventory():
53+
class ProjectInventory:
5154
projectId: int
5255
inventoryItems: List[ProjectInventoryItem]
5356

57+
5458
@dataclass
5559
class Report(DataClassJsonMixin):
5660
id: int

examples/example-9-dataframe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88

99

1010
inventory = client.project_inventory.get(1)
11-
df = pd.DataFrame(inventory.__dict__['inventoryItems'])
11+
df = pd.DataFrame(inventory.__dict__["inventoryItems"])

examples/shared.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
2-
BASE_URL = 'https://api.revenera.com'
3-
AUTH_TOKEN = 'test'
1+
BASE_URL = "https://api.revenera.com"
2+
AUTH_TOKEN = "test"

0 commit comments

Comments
 (0)