diff --git a/hooks/post_gen_project.py b/hooks/post_gen_project.py index 318088f..9f1568a 100644 --- a/hooks/post_gen_project.py +++ b/hooks/post_gen_project.py @@ -14,8 +14,9 @@ ["git", "commit", "--message", "chore(cookiecutter): initial commit", "--quiet"] ) # add pre-commit and iesopt dependencies - subprocess.run(["uv", "tool", "install", "pre-commit", "--with", "pre-commit-uv"]) - subprocess.run(["uv", "tool", "run", "pre-commit", "install"]) + # subprocess.run(["uv", "tool", "install", "pre-commit", "--with", "pre-commit-uv"]) + subprocess.run(["uv", "pip", "install", "pre-commit"]) + subprocess.run(["uv", "run", "pre-commit", "install"]) subprocess.run(["uv", "run", "python", "-c", "import iesopt"]) subprocess.run(["git", "add", "."]) subprocess.run( diff --git a/{{ cookiecutter.project_slug }}/.pre-commit-config.yaml b/{{ cookiecutter.project_slug }}/.pre-commit-config.yaml index 495a878..6e543af 100644 --- a/{{ cookiecutter.project_slug }}/.pre-commit-config.yaml +++ b/{{ cookiecutter.project_slug }}/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.12.9 + rev: v0.15.2 hooks: - id: ruff-check types_or: [ python, pyi ] diff --git a/{{ cookiecutter.project_slug }}/.python-version b/{{ cookiecutter.project_slug }}/.python-version index e4fba21..1019cd9 100644 --- a/{{ cookiecutter.project_slug }}/.python-version +++ b/{{ cookiecutter.project_slug }}/.python-version @@ -1 +1 @@ -3.12 +3.14.3 \ No newline at end of file diff --git a/{{ cookiecutter.project_slug }}/pyproject.toml b/{{ cookiecutter.project_slug }}/pyproject.toml index 7148f1c..f38a03e 100644 --- a/{{ cookiecutter.project_slug }}/pyproject.toml +++ b/{{ cookiecutter.project_slug }}/pyproject.toml @@ -4,5 +4,5 @@ version = "0.1.0" description = "{{ cookiecutter.short_description }}" authors = ["{{ cookiecutter.author }}"] readme = "README.md" -requires-python = ">=3.12" +requires-python = ">=3.14" dependencies = []