Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ project_license: BSD
project_name: python-project-template
project_organization: lincc-frameworks
python_versions:
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- '3.13'
- '3.14'
- '3.15'
test_lowest_version: none
2 changes: 1 addition & 1 deletion .github/workflows/smoke-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14', '3.15']

steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/testing-and-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14', '3.15']

steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
Expand Down
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ repos:
# This hook should always pass. It will print a message if the local version
# is out of date.
- repo: https://github.com/lincc-frameworks/pre-commit-hooks
rev: v0.2.2
rev: 439dda8bd784f4aa721851ecec03877df286f6b5
hooks:
- id: check-lincc-frameworks-template-version
name: Check template version
Expand All @@ -23,7 +23,7 @@ repos:
entry: jupyter nbconvert --clear-output
# Prevents committing directly branches named 'main' and 'master'.
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c
hooks:
- id: no-commit-to-branch
name: Prevent main branch commits
Expand All @@ -34,20 +34,20 @@ repos:
args: ['--maxkb=500']
# Verify that pyproject.toml is well formed
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.24.1
rev: 17e12779811926f000bdfa1795f9e3735dd71ac3
hooks:
- id: validate-pyproject
name: Validate pyproject.toml
description: Verify that pyproject.toml adheres to the established schema.
# Verify that GitHub workflows are well formed
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.36.1
rev: 0494aa7fa1314e98913a41227d8f0a515b2c1049
hooks:
- id: check-github-workflows
args: ["--verbose"]
# Automatically sort the imports used in .py files
- repo: https://github.com/pycqa/isort
rev: 7.0.0
rev: 9f905615631c545f5aea2516508109350d1d2f7d
hooks:
- id: isort
name: Run isort
Expand All @@ -70,7 +70,7 @@ repos:
]
# Analyze the code style and report code that doesn't adhere.
- repo: https://github.com/psf/black
rev: 26.1.0
rev: 258e7dbf348bc23cb70b8cdf693481c04634ebcc
hooks:
- id: black-jupyter
name: Format code using black
Expand Down
4 changes: 2 additions & 2 deletions copier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,12 @@ python_versions:
type: str
multiselect: true
choices:
"3.9 (end-of-life)": "3.9"
"3.10": "3.10"
"3.10 (end-of-life)": "3.10"
"3.11": "3.11"
"3.12": "3.12"
"3.13": "3.13"
"3.14": "3.14"
"3.15": "3.15"

enforce_style:
help: What tooling set would you like to use to enforce code style? Use SPACE to highlight all that apply.
Expand Down
6 changes: 3 additions & 3 deletions docs/source/template_options.rst
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ The license type you want to use for this project.
+------------+----------------------------------------------------+
| Question | What versions of Python will your project support? |
+------------+----------------------------------------------------+
| Options | 3.9 (end-of-life), **✱ 3.10**, |
| | **✱ 3.11**, **✱ 3.12**, |
| | **✱ 3.13**, 3.14 |
| Options | 3.10 (end-of-life), **✱ 3.11**, |
| | **✱ 3.12**, **✱ 3.13**, |
| | 3.14, 3.15 |
+------------+----------------------------------------------------+

Select all versions of python that you are targeting for execution.
Expand Down
20 changes: 10 additions & 10 deletions python-project-template/.pre-commit-config.yaml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ repos:
# This hook should always pass. It will print a message if the local version
# is out of date.
- repo: https://github.com/lincc-frameworks/pre-commit-hooks
rev: v0.2.2
rev: 439dda8bd784f4aa721851ecec03877df286f6b5
hooks:
- id: check-lincc-frameworks-template-version
name: Check template version
Expand All @@ -23,7 +23,7 @@ repos:
entry: jupyter nbconvert --clear-output
# Prevents committing directly branches named 'main' and 'master'.
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c
hooks:
- id: no-commit-to-branch
name: Prevent main branch commits
Expand All @@ -34,21 +34,21 @@ repos:
args: ['--maxkb=500']
# Verify that pyproject.toml is well formed
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.24.1
rev: 17e12779811926f000bdfa1795f9e3735dd71ac3
hooks:
- id: validate-pyproject
name: Validate pyproject.toml
description: Verify that pyproject.toml adheres to the established schema.
# Verify that GitHub workflows are well formed
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.28.0
rev: 0494aa7fa1314e98913a41227d8f0a515b2c1049
hooks:
- id: check-github-workflows
args: ["--verbose"]
{%- if 'isort' in enforce_style %}
# Automatically sort the imports used in .py files
- repo: https://github.com/pycqa/isort
rev: 5.12.0
rev: 9f905615631c545f5aea2516508109350d1d2f7d
hooks:
- id: isort
name: Run isort
Expand Down Expand Up @@ -90,7 +90,7 @@ repos:
{%- if 'black' in enforce_style %}
# Analyze the code style and report code that doesn't adhere.
- repo: https://github.com/psf/black
rev: 23.7.0
rev: 258e7dbf348bc23cb70b8cdf693481c04634ebcc
hooks:
- id: black-jupyter
name: Format code using black
Expand All @@ -104,7 +104,7 @@ repos:
{%- if 'ruff_lint' in enforce_style %}
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.2.1
rev: 44b5042edab9382aba712eed4f9c7bab7a3d6a3e
hooks:
- id: ruff
name: Lint code using ruff; sort and organize imports
Expand All @@ -114,7 +114,7 @@ repos:
{%- if 'ruff_format' in enforce_style %}
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.2.1
rev: 44b5042edab9382aba712eed4f9c7bab7a3d6a3e
hooks:
- id: ruff-format
name: Format code using ruff
Expand All @@ -123,7 +123,7 @@ repos:
{%- if mypy_type_checking != 'none' %}
# Analyze type hints and report errors.
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.19.0
rev: 2834ec6639549dd6796205c8f011dedcd587288b
hooks:
- id: mypy
name: mypy (python files in src/ and tests/)
Expand All @@ -142,7 +142,7 @@ repos:
{%- endif %}
{%- if include_docs and include_notebooks %}
- repo: https://github.com/lincc-frameworks/pre-commit-hooks
rev: v0.2.2
rev: 439dda8bd784f4aa721851ecec03877df286f6b5
hooks:
- id: pre-executed-nb-never-execute
name: Check pre-executed notebooks
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import pytest

PYTHON_VERSIONS = ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
PYTHON_VERSIONS = ["3.10", "3.11", "3.12", "3.13", "3.14", "3.15"]


def pytest_addoption(parser):
Expand Down
Loading