1- {% if cookiecutter.package_manager == "poetry" %}
1+ {% if cookiecutter.package_manager == "poetry" - %}
22[tool .poetry ]
33name = " {{ cookiecutter.project_slug }}"
44version = " 0.1.0"
@@ -9,31 +9,49 @@ packages = [{ include = "{{ cookiecutter.module_name }}", from = "src" }]
99include = [" src/{{ cookiecutter.module_name }}/res/*" ]
1010
1111[tool .poetry .dependencies ]
12- python = " ^3.9" {% if cookiecutter.config_file == 'hocon' %}, pyhocon = " ^0.3.59" {% elif cookiecutter.config_file == 'yaml' %}, PyYAML = " ^6.0" {% endif %}{% if cookiecutter.create_cli == 'yes' %}, typer = " ^0.15.1" {% endif %}
12+ python = " ^3.9"
13+ {%- if cookiecutter.config_file == 'hocon' %}
14+ pyhocon = " ^0.3.59"
15+ {%- elif cookiecutter.config_file == 'yaml' %}
16+ PyYAML = " ^6.0"
17+ {%- endif %}
18+ {%- if cookiecutter.create_cli == 'yes' %}
19+ typer = " ^0.15.1"
20+ {%- endif %}
1321
1422[tool .poetry .group .test .dependencies ]
1523pytest = " ^8.3.4"
1624pytest-cov = " ^4.0"
1725
18- [tool .poetry .group .linter .dependencies ]{% if cookiecutter.code_formatter == 'black' %}
19- black = " ^25.1.0" {% else %}
20- ruff = " ^0.1.7" {% endif %}
26+ [tool .poetry .group .linter .dependencies ]
27+ {%- if cookiecutter.code_formatter == 'black' %}
28+ black = " ^25.1.0"
29+ {%- else %}
30+ ruff = " ^0.1.7"
31+ {%- endif %}
2132isort = " ^5.12.0"
2233
2334[tool .poetry .group .dev .dependencies ]
24- pre-commit = " ^3.0" {% if cookiecutter.use_notebooks == 'yes' %}, jupyterlab = " ^3.5" {% endif %}
35+ pre-commit = " ^3.0"
36+ {%- if cookiecutter.use_notebooks == 'yes' %}
37+ jupyterlab = " ^3.5"
38+ {%- endif %}
2539
2640[tool .poetry .extras ]
2741build = [" setuptools" , " cython" ]
28- compile = [" cchardet" ]
2942
30- [tool .poetry .scripts ]{% if cookiecutter.create_cli == "yes" %}
31- {{ cookiecutter.project_slug }} = "{{ cookiecutter.module_name }}.main:app"{% endif %}
43+ [tool .poetry .scripts ]
44+ {%- if cookiecutter.create_cli == "yes" %}
45+ {{ cookiecutter.project_slug }} = "{{ cookiecutter.module_name }}.main:app"
46+ {%- endif %}
3247
33- [tool .isort ]{% if cookiecutter.code_formatter == 'black' %}
34- profile = " black" {% else %}
48+ [tool .isort ]
49+ {%- if cookiecutter.code_formatter == 'black' %}
50+ profile = " black"
51+ {%- else %}
3552line_length = 100
36- multi_line_output = 3 {% endif %}
53+ multi_line_output = 3
54+ {%- endif %}
3755
3856[tool .pytest .ini_options ]
3957minversion = " 7.0"
@@ -46,24 +64,33 @@ default-groups = ["dev", "test", "linter"]
4664requires = [" poetry-core" ]
4765build-backend = " poetry.core.masonry.api"
4866
49- {% else %}
50- [project ]
67+ {%- else %}[project]
5168name = " {{ cookiecutter.project_slug }}"
5269version = " 0.1.0"
5370description = " {{ cookiecutter.project_short_description }}"
5471authors = [{ name = " {{ cookiecutter.full_name }}" , email = " {{ cookiecutter.email }}" }]
5572requires-python = " >=3.9"
56- dependencies = [{% if cookiecutter.config_file == 'hocon' %}"pyhocon>=0.3.59",{% elif cookiecutter.config_file == 'yaml' %}"PyYAML>=6.0",{% endif %}{% if cookiecutter.create_cli == 'yes' %}"typer[all]>=0.15.1",{% endif %}]
73+ dependencies = [
74+ {%- if cookiecutter.config_file == 'hocon' %}
75+ "pyhocon>=0.3.59",
76+ {%- elif cookiecutter.config_file == 'yaml' %}
77+ "PyYAML>=6.0",
78+ {%- endif %}
79+ {%- if cookiecutter.create_cli == 'yes' %}
80+ "typer[all]>=0.15.1",
81+ {%- endif %}
82+ ]
5783
5884[project .license ]
5985text = " proprietary"
6086
6187[project .optional-dependencies ]
6288build = [" setuptools" , " cython" ]
63- compile = ["cchardet"]
6489
65- [project.scripts]{% if cookiecutter.create_cli == "yes" %}
66- {{ cookiecutter.project_slug }} = "{{ cookiecutter.module_name }}.main:app"{% endif %}
90+ {%- if cookiecutter.create_cli == "yes" %}
91+ [project .scripts ]
92+ {{ cookiecutter.project_slug }} = "{{ cookiecutter.module_name }}.main:app"
93+ {%- endif %}
6794
6895[project .gui-scripts ]
6996hello_gui = " {{ cookiecutter.module_name }}.gui:main"
@@ -73,13 +100,23 @@ a = "{{ cookiecutter.module_name }}_plugin_a"
73100
74101[dependency-groups ]
75102dev = [" pre-commit>=3.0" {% if cookiecutter.use_notebooks == 'yes' %}, "jupyterlab>=3.5"{% endif %}]
76- linter = [{% if cookiecutter.code_formatter == 'black' %}"black>=25.1.0",{% else %}"ruff>=0.1.7",{% endif %}"isort>=5.12.0"]
103+ linter = [
104+ {%- if cookiecutter.code_formatter == 'black' %}
105+ "black>=25.1.0",
106+ {%- else %}
107+ "ruff>=0.1.7",
108+ {%- endif %}
109+ "isort>=5.12.0"
110+ ]
77111test = [" pytest>=8.3.4" , " pytest-cov>=4.0" ]
78112
79- [tool.isort]{% if cookiecutter.code_formatter == 'black' %}
80- profile = "black"{% else %}
113+ [tool .isort ]
114+ {%- if cookiecutter.code_formatter == 'black' %}
115+ profile = " black"
116+ {%- else %}
81117line_length = 100
82- multi_line_output = 3{% endif %}
118+ multi_line_output = 3
119+ {%- endif %}
83120
84121[tool .pytest .ini_options ]
85122minversion = " 7.0"
@@ -91,4 +128,4 @@ default-groups = ["dev", "test", "linter"]
91128[build-system ]
92129requires = [" setuptools" , " wheel" ]
93130build-backend = " setuptools.build_meta"
94- {% endif %}
131+ {%- endif %}
0 commit comments