Skip to content

Commit d7c9bbf

Browse files
committed
Fix the PR
1 parent 0030cef commit d7c9bbf

File tree

5 files changed

+23
-189
lines changed

5 files changed

+23
-189
lines changed

{{cookiecutter.project_slug}}/.github/workflows/tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@ jobs:
1313
strategy:
1414
matrix:
1515
python:
16+
- "3.10"
1617
- "3.11"
1718
- "3.12"
19+
- "3.13"
20+
- "3.14"
1821
runs-on: ubuntu-latest
1922
steps:
2023
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

{{cookiecutter.project_slug}}/.pre-commit-config.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
# See https://pre-commit.com for more information
33
repos:
44
- repo: https://github.com/astral-sh/ruff-pre-commit
5-
rev: v0.6.2
5+
# Ruff version.
6+
rev: v0.14.8
67
hooks:
7-
# Run the formatter
8-
- id: ruff-format
9-
# Run the linter
10-
- id: ruff
8+
# Run the linter.
9+
- id: ruff-check
1110
args: [--fix]
11+
# Run the formatter.
12+
- id: ruff-format
1213

1314
- repo: local
1415
hooks:
@@ -30,8 +31,8 @@ repos:
3031
{%- endif %}
3132

3233
- id: pytest
33-
name: pytest (fast tests only)
34-
entry: uv run pytest -x --tb=short -k "not slow"
34+
name: pytest
35+
entry: uv run pytest
3536
language: system
3637
types: [python]
3738
pass_filenames: false

{{cookiecutter.project_slug}}/CLAUDE.md

Lines changed: 0 additions & 167 deletions
This file was deleted.

{{cookiecutter.project_slug}}/Makefile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,8 @@ $(VENV)/pyvenv.cfg: pyproject.toml
6060
lint: $(VENV)/pyvenv.cfg
6161
uv run ruff format --check && \
6262
uv run ruff check && \
63-
uv run pyright
64-
65-
{%- if cookiecutter.docstring_coverage %}
66-
uv run interrogate -c pyproject.toml .
67-
{%- endif %}
63+
uv run pyright{% if cookiecutter.docstring_coverage %} && \
64+
uv run interrogate -c pyproject.toml .{% endif %}
6865

6966
.PHONY: check
7067
check: lint test

{{cookiecutter.project_slug}}/pyproject.toml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ name = "{{ cookiecutter.project_slug }}"
33
dynamic = ["version"]
44
description = "{{ cookiecutter.project_description }}"
55
readme = "README.md"
6+
license-files = ["LICENSE"]
67
{%- if cookiecutter.license == "Apache 2.0" %}
7-
license = {text = "Apache-2.0"}
8+
license = "Apache-2.0"
89
{%- elif cookiecutter.license == "AGPL v3" %}
9-
license = {text = "AGPL-3.0-or-later"}
10+
license = "AGPL-3.0-or-later"
1011
{%- elif cookiecutter.license == "Proprietary" %}
11-
license = {file = "LICENSE"}
12+
license = "LicenseRef-Proprietary-License"
1213
{%- endif %}
1314

1415
authors = [
@@ -18,7 +19,7 @@ classifiers = [
1819
"Programming Language :: Python :: 3",
1920
]
2021
dependencies = []
21-
requires-python = ">=3.11"
22+
requires-python = ">=3.10"
2223

2324
[tool.setuptools.dynamic]
2425
version = { attr = "{{ cookiecutter.__project_import }}.__version__" }
@@ -33,7 +34,7 @@ test = ["pytest", "pytest-cov", "pretend", "coverage[toml]"]
3334
lint = [
3435
# NOTE: ruff is under active development, so we pin conservatively here
3536
# and let Dependabot periodically perform this update.
36-
"ruff ~= 0.6.2",
37+
"ruff ~= 0.14.8",
3738
"pyright >= 1.1",
3839
"types-html5lib",
3940
"types-requests",
@@ -62,14 +63,14 @@ omit = ["{{ cookiecutter.__project_src_path }}/_cli.py"]
6263
[tool.pyright]
6364
# Type checking configuration
6465
include = ["src", "test"]
65-
pythonVersion = "3.11"
66+
pythonVersion = "3.10"
6667
typeCheckingMode = "strict"
6768
useLibraryCodeForTypes = true
6869
reportMissingTypeStubs = false
6970

7071
[tool.ruff]
7172
line-length = 100
72-
target-version = "py311"
73+
target-version = "py310"
7374

7475
[tool.ruff.format]
7576
line-ending = "lf"
@@ -123,8 +124,7 @@ fail-under = 100
123124
{%- endif %}
124125

125126
[tool.pytest.ini_options]
126-
# Support tests living beside code
127-
testpaths = ["src", "test"]
128-
python_files = ["test_*.py", "*_test.py"]
127+
testpaths = ["test"]
128+
python_files = ["test_*.py"]
129129
# Show test durations
130130
addopts = "--durations=10"

0 commit comments

Comments
 (0)