Skip to content

Commit

Permalink
feat: use the specified python version
Browse files Browse the repository at this point in the history
  • Loading branch information
pplmx committed Aug 17, 2024
1 parent 82e2ebc commit 6652c4b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions template/py/{{cookiecutter.project_slug}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,14 @@ build-backend = "hatchling.build"
name = "{{cookiecutter.project_slug}}"
version = "0.0.1"
description = "{{cookiecutter.project_desc}}"
requires-python = ">=3.11"
requires-python = ">={{cookiecutter.python_version}}"
license = "MIT"
authors = [
{ name = "{{cookiecutter.full_name}}" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Programming Language :: Python :: {{cookiecutter.python_version}}",
]
dependencies = [
"pytest>=8.0",
Expand Down
2 changes: 1 addition & 1 deletion template/py/{{cookiecutter.project_slug}}/ruff.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
target-version = "py311"
target-version = "py{{cookiecutter.python_version | replace('.', '')}}"
line-length = 120

[lint]
Expand Down

0 comments on commit 6652c4b

Please sign in to comment.