Skip to content

Commit 2f8a24e

Browse files
authored
Merge pull request #34 from Materials-Data-Science-and-Informatics/fix/dependency_comma
Fix/dependency comma
2 parents 6f3c205 + 6afadee commit 2f8a24e

File tree

2 files changed

+4
-4
lines changed
  • src/fair_python_cookiecutter/template/{{ cookiecutter.project_slug }}

2 files changed

+4
-4
lines changed

src/fair_python_cookiecutter/template/{{ cookiecutter.project_slug }}/pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ requires-python = ">=3.9"
1414
keywords = {{ cookiecutter.project_keywords.split() | jsonify }}
1515
dependencies = [
1616
{%- if cookiecutter.init_cli %}
17-
"typer[all]>=0.12.3"
17+
"typer[all]>=0.12.3",
1818
{%- endif %}
1919
{%- if cookiecutter.init_api %}
20-
"fastapi>=0.111.1"
21-
"uvicorn>=0.30.4"
20+
"fastapi>=0.111.1",
21+
"uvicorn>=0.30.4",
2222
{%- endif %}
2323
]
2424

src/fair_python_cookiecutter/template/{{ cookiecutter.project_slug }}/src/{{ cookiecutter.project_package }}/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def calc(op: CalcOperation, x: int, y: int = 0):
1717
err = f"Cannot divide x={x} by y=0!"
1818
else:
1919
err = str(e)
20-
raise HTTPException(status_code=422, detail=err)
20+
raise HTTPException(status_code=422, detail=err) from e
2121

2222
def run():
2323
import uvicorn

0 commit comments

Comments
 (0)