Skip to content

Commit 32704e6

Browse files
committed
Replace some hardcoded values
1 parent 539f144 commit 32704e6

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

  • {{ cookiecutter.project_name.lower().replace(' ', '-') }}

{{ cookiecutter.project_name.lower().replace(' ', '-') }}/pyproject.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "{{ cookiecutter.project_name.lower().replace(' ', '-') }}"
33
version = "0.1.0"
4-
requires-python = ">=3.13"
4+
requires-python = ">={{ cookiecutter.python_version }}"
55
{%- if cookiecutter.install_pydantic %}
66
dependencies = [
77
"pydantic>=2.9.2",
@@ -99,8 +99,7 @@ output = "reports/coverage.xml"
9999

100100
[tool.ruff]
101101
# https://docs.astral.sh/ruff/settings/#top-level
102-
line-length = 100
103-
target-version = "py312"
102+
line-length = {{ cookiecutter.line_length }}
104103

105104
[tool.ruff.lint]
106105
# https://docs.astral.sh/ruff/settings/#lint
@@ -182,7 +181,7 @@ classmethod-decorators = [
182181

183182
[tool.ruff.lint.pycodestyle]
184183
# https://docs.astral.sh/ruff/settings/#lintpycodestyle
185-
max-doc-length = 100
184+
max-doc-length = {{ cookiecutter.line_length }}
186185

187186
[tool.ruff.lint.pydocstyle]
188187
# https://docs.astral.sh/ruff/settings/#lintpydocstyle

0 commit comments

Comments
 (0)