Skip to content

Commit 2330a2b

Browse files
committed
more stuff
1 parent 2c8d966 commit 2330a2b

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed
12 KB
Binary file not shown.

python/hooks/post_gen_project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
Path("tests/test_api.py").unlink()
1818
Path("src/{{ cookiecutter.project_slug }}/api.py").unlink()
1919
Path("src/{{ cookiecutter.project_slug }}/models.py").unlink()
20-
Path("src/{{ cookiecutter.project_slug }}/config.py").unlink()
2120

2221
if (not {{ cookiecutter.add_fastapi }}) and (not {{ cookiecutter.add_cli }}):
2322
Path("./src/{{ cookiecutter.project_slug }}/logging.py").unlink()
23+
Path("src/{{ cookiecutter.project_slug }}/config.py").unlink()

python/{{cookiecutter.project_slug}}/pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ dependencies = [
2525
{%- if cookiecutter.add_fastapi %}
2626
"fastapi",
2727
"pydantic~=2.1",
28+
{%- endif %}
29+
{%- if cookiecutter.add_fastapi or cookiecutter.add_cli %}
2830
"pydantic-settings",
2931
{%- endif %}
3032
]

0 commit comments

Comments
 (0)