Skip to content

Commit fc24438

Browse files
committed
style: Solve some style errors
1 parent 409f6e8 commit fc24438

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

app/apis/git_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
}
1313

1414
async def get_repo_data(owner: str, name: str) -> dict[list, list]:
15-
query = "{repository(owner: \"" + owner + "\", name: \"" + name + "\")"
16-
query += "{dependencyGraphManifests{nodes{filename dependencies{nodes{packageName requirements}}}}}}"
15+
query = '{repository(owner: \'' + owner + '\', name: \'' + name + '\')'
16+
query += '{dependencyGraphManifests{nodes{filename dependencies{nodes{packageName requirements}}}}}}'
1717

1818
response = post('https://api.github.com/graphql', json={'query': query}, headers = headers, timeout = 25).json()
1919

app/main.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@
1414
description = 'A simple backend for dependency extraction'
1515

1616
app = FastAPI(
17-
title = "Depex",
17+
title = 'Depex',
1818
description = description,
19-
version = "0.1.0",
19+
version = '0.1.1',
2020
contact = {
21-
"name": "Antonio Germán Márquez Trujillo",
22-
"url": "https://github.com/GermanMT",
23-
"email": "[email protected]",
21+
'name': 'Antonio Germán Márquez Trujillo',
22+
'url': 'https://github.com/GermanMT',
23+
'email': '[email protected]',
2424
},
2525
license_info = {
26-
"name": "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
27-
"url": "https://www.gnu.org/licenses/gpl-3.0.html",
26+
'name': 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
27+
'url': 'https://www.gnu.org/licenses/gpl-3.0.html',
2828
},
2929
)
3030

app/models/graph_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55

66
class GraphModel(BaseModel):
7-
owner: str = Field(..., min_length = 1, description = "The owner repository size must be greater than zero")
8-
name: str = Field(..., min_length = 1, description = "The name repository size must be greater than zero")
7+
owner: str = Field(..., min_length = 1, description = 'The owner repository size must be greater than zero')
8+
name: str = Field(..., min_length = 1, description = 'The name repository size must be greater than zero')
99
add_extras: bool = Field(...)
1010
is_complete: bool = Field(...)
1111
requirement_files: list[RequirementFile] | None = None

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
'python-dateutil==2.8.2',
3535
'types-python-dateutil==2.8.19'
3636
],
37-
tests_require=[
37+
tests_requires = [
3838
'prospector[with_everything]==1.7.7',
3939
'mypy==0.971'
4040
]

0 commit comments

Comments
 (0)