Skip to content

Commit 6b22d83

Browse files
authored
Update Python versions and change precommit versions to use SHA tags (#612)
* Change precomit versions to use SHA tags * Drop 3.9 and add 3.15 * Update smoke-test.yml
1 parent fafcf7f commit 6b22d83

8 files changed

Lines changed: 25 additions & 25 deletions

File tree

‎.copier-answers.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ project_license: BSD
2121
project_name: python-project-template
2222
project_organization: lincc-frameworks
2323
python_versions:
24-
- '3.9'
2524
- '3.10'
2625
- '3.11'
2726
- '3.12'
2827
- '3.13'
2928
- '3.14'
29+
- '3.15'
3030
test_lowest_version: none

‎.github/workflows/smoke-test.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: ubuntu-latest
2424
strategy:
2525
matrix:
26-
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
26+
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14', '3.15']
2727

2828
steps:
2929
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1

‎.github/workflows/testing-and-coverage.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020
strategy:
2121
matrix:
22-
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
22+
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14', '3.15']
2323

2424
steps:
2525
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1

‎.pre-commit-config.yaml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ repos:
44
# This hook should always pass. It will print a message if the local version
55
# is out of date.
66
- repo: https://github.com/lincc-frameworks/pre-commit-hooks
7-
rev: v0.2.2
7+
rev: 439dda8bd784f4aa721851ecec03877df286f6b5
88
hooks:
99
- id: check-lincc-frameworks-template-version
1010
name: Check template version
@@ -23,7 +23,7 @@ repos:
2323
entry: jupyter nbconvert --clear-output
2424
# Prevents committing directly branches named 'main' and 'master'.
2525
- repo: https://github.com/pre-commit/pre-commit-hooks
26-
rev: v6.0.0
26+
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c
2727
hooks:
2828
- id: no-commit-to-branch
2929
name: Prevent main branch commits
@@ -34,20 +34,20 @@ repos:
3434
args: ['--maxkb=500']
3535
# Verify that pyproject.toml is well formed
3636
- repo: https://github.com/abravalheri/validate-pyproject
37-
rev: v0.24.1
37+
rev: 17e12779811926f000bdfa1795f9e3735dd71ac3
3838
hooks:
3939
- id: validate-pyproject
4040
name: Validate pyproject.toml
4141
description: Verify that pyproject.toml adheres to the established schema.
4242
# Verify that GitHub workflows are well formed
4343
- repo: https://github.com/python-jsonschema/check-jsonschema
44-
rev: 0.36.1
44+
rev: 0494aa7fa1314e98913a41227d8f0a515b2c1049
4545
hooks:
4646
- id: check-github-workflows
4747
args: ["--verbose"]
4848
# Automatically sort the imports used in .py files
4949
- repo: https://github.com/pycqa/isort
50-
rev: 7.0.0
50+
rev: 9f905615631c545f5aea2516508109350d1d2f7d
5151
hooks:
5252
- id: isort
5353
name: Run isort
@@ -70,7 +70,7 @@ repos:
7070
]
7171
# Analyze the code style and report code that doesn't adhere.
7272
- repo: https://github.com/psf/black
73-
rev: 26.1.0
73+
rev: 258e7dbf348bc23cb70b8cdf693481c04634ebcc
7474
hooks:
7575
- id: black-jupyter
7676
name: Format code using black

‎copier.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,12 @@ python_versions:
8787
type: str
8888
multiselect: true
8989
choices:
90-
"3.9 (end-of-life)": "3.9"
91-
"3.10": "3.10"
90+
"3.10 (end-of-life)": "3.10"
9291
"3.11": "3.11"
9392
"3.12": "3.12"
9493
"3.13": "3.13"
9594
"3.14": "3.14"
95+
"3.15": "3.15"
9696

9797
enforce_style:
9898
help: What tooling set would you like to use to enforce code style? Use SPACE to highlight all that apply.

‎docs/source/template_options.rst‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ The license type you want to use for this project.
128128
+------------+----------------------------------------------------+
129129
| Question | What versions of Python will your project support? |
130130
+------------+----------------------------------------------------+
131-
| Options | 3.9 (end-of-life), **✱ 3.10**, |
132-
| | **✱ 3.11**, **✱ 3.12**, |
133-
| | **✱ 3.13**, 3.14 |
131+
| Options | 3.10 (end-of-life), **✱ 3.11**, |
132+
| | **✱ 3.12**, **✱ 3.13**, |
133+
| | 3.14, 3.15 |
134134
+------------+----------------------------------------------------+
135135

136136
Select all versions of python that you are targeting for execution.

‎python-project-template/.pre-commit-config.yaml.jinja‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ repos:
44
# This hook should always pass. It will print a message if the local version
55
# is out of date.
66
- repo: https://github.com/lincc-frameworks/pre-commit-hooks
7-
rev: v0.2.2
7+
rev: 439dda8bd784f4aa721851ecec03877df286f6b5
88
hooks:
99
- id: check-lincc-frameworks-template-version
1010
name: Check template version
@@ -23,7 +23,7 @@ repos:
2323
entry: jupyter nbconvert --clear-output
2424
# Prevents committing directly branches named 'main' and 'master'.
2525
- repo: https://github.com/pre-commit/pre-commit-hooks
26-
rev: v4.4.0
26+
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c
2727
hooks:
2828
- id: no-commit-to-branch
2929
name: Prevent main branch commits
@@ -34,21 +34,21 @@ repos:
3434
args: ['--maxkb=500']
3535
# Verify that pyproject.toml is well formed
3636
- repo: https://github.com/abravalheri/validate-pyproject
37-
rev: v0.24.1
37+
rev: 17e12779811926f000bdfa1795f9e3735dd71ac3
3838
hooks:
3939
- id: validate-pyproject
4040
name: Validate pyproject.toml
4141
description: Verify that pyproject.toml adheres to the established schema.
4242
# Verify that GitHub workflows are well formed
4343
- repo: https://github.com/python-jsonschema/check-jsonschema
44-
rev: 0.28.0
44+
rev: 0494aa7fa1314e98913a41227d8f0a515b2c1049
4545
hooks:
4646
- id: check-github-workflows
4747
args: ["--verbose"]
4848
{%- if 'isort' in enforce_style %}
4949
# Automatically sort the imports used in .py files
5050
- repo: https://github.com/pycqa/isort
51-
rev: 5.12.0
51+
rev: 9f905615631c545f5aea2516508109350d1d2f7d
5252
hooks:
5353
- id: isort
5454
name: Run isort
@@ -90,7 +90,7 @@ repos:
9090
{%- if 'black' in enforce_style %}
9191
# Analyze the code style and report code that doesn't adhere.
9292
- repo: https://github.com/psf/black
93-
rev: 23.7.0
93+
rev: 258e7dbf348bc23cb70b8cdf693481c04634ebcc
9494
hooks:
9595
- id: black-jupyter
9696
name: Format code using black
@@ -104,7 +104,7 @@ repos:
104104
{%- if 'ruff_lint' in enforce_style %}
105105
- repo: https://github.com/astral-sh/ruff-pre-commit
106106
# Ruff version.
107-
rev: v0.2.1
107+
rev: 44b5042edab9382aba712eed4f9c7bab7a3d6a3e
108108
hooks:
109109
- id: ruff
110110
name: Lint code using ruff; sort and organize imports
@@ -114,7 +114,7 @@ repos:
114114
{%- if 'ruff_format' in enforce_style %}
115115
- repo: https://github.com/astral-sh/ruff-pre-commit
116116
# Ruff version.
117-
rev: v0.2.1
117+
rev: 44b5042edab9382aba712eed4f9c7bab7a3d6a3e
118118
hooks:
119119
- id: ruff-format
120120
name: Format code using ruff
@@ -123,7 +123,7 @@ repos:
123123
{%- if mypy_type_checking != 'none' %}
124124
# Analyze type hints and report errors.
125125
- repo: https://github.com/pre-commit/mirrors-mypy
126-
rev: v1.19.0
126+
rev: 2834ec6639549dd6796205c8f011dedcd587288b
127127
hooks:
128128
- id: mypy
129129
name: mypy (python files in src/ and tests/)
@@ -142,7 +142,7 @@ repos:
142142
{%- endif %}
143143
{%- if include_docs and include_notebooks %}
144144
- repo: https://github.com/lincc-frameworks/pre-commit-hooks
145-
rev: v0.2.2
145+
rev: 439dda8bd784f4aa721851ecec03877df286f6b5
146146
hooks:
147147
- id: pre-executed-nb-never-execute
148148
name: Check pre-executed notebooks

‎tests/conftest.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import pytest
44

5-
PYTHON_VERSIONS = ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
5+
PYTHON_VERSIONS = ["3.10", "3.11", "3.12", "3.13", "3.14", "3.15"]
66

77

88
def pytest_addoption(parser):

0 commit comments

Comments
 (0)