From 15862e749f0a0faa08ced609d639581bd917ccd9 Mon Sep 17 00:00:00 2001 From: Benjamin Thomas Schwertfeger Date: Mon, 10 Nov 2025 06:39:05 +0100 Subject: [PATCH] Test against Python 3.14 --- .github/workflows/cicd.yaml | 4 ++-- .pre-commit-config.yaml | 12 ++++++------ README.md | 1 - pyproject.toml | 5 ++--- 4 files changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/cicd.yaml b/.github/workflows/cicd.yaml index 08b4fb7..8d974de 100644 --- a/.github/workflows/cicd.yaml +++ b/.github/workflows/cicd.yaml @@ -43,7 +43,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] with: os: ${{ matrix.os }} python-version: ${{ matrix.python-version }} @@ -67,7 +67,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest] - python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] with: os: ${{ matrix.os }} python-version: ${{ matrix.python-version }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a25937d..2930a68 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.11.13 + rev: v0.14.4 hooks: - id: ruff args: @@ -30,11 +30,11 @@ repos: - id: codespell additional_dependencies: [tomli] - repo: https://github.com/gitleaks/gitleaks - rev: v8.21.2 + rev: v8.29.0 hooks: - id: gitleaks - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: # all available hooks can be found here: https://github.com/pre-commit/pre-commit-hooks/blob/main/.pre-commit-hooks.yaml - id: check-yaml @@ -72,12 +72,12 @@ repos: - id: rst-directive-colons - id: text-unicode-replacement-char - repo: https://github.com/PyCQA/isort # TODO: remove as soon as ruff is stable - rev: 6.0.1 + rev: 7.0.0 hooks: - id: isort args: [--profile=black] - repo: https://github.com/PyCQA/bandit - rev: 1.8.3 + rev: 1.8.6 hooks: - id: bandit exclude: "^tests/.*|examples/.*" @@ -90,7 +90,7 @@ repos: - --max-modules=B - --max-absolute=C - repo: https://github.com/rbubley/mirrors-prettier - rev: v3.3.3 + rev: v3.6.2 hooks: - id: prettier exclude: '\.nc$|^tests/fixture/|\.ipynb$' diff --git a/README.md b/README.md index 5ea7dcf..c06d30e 100644 --- a/README.md +++ b/README.md @@ -115,7 +115,6 @@ https://python-cmethods.readthedocs.io/en/stable/ - Except for the variance scaling, all methods can be applied on stochastic and non-stochastic climate variables. Variance scaling can only be applied on non-stochastic climate variables. - - Non-stochastic climate variables are those that can be predicted with relative certainty based on factors such as location, elevation, and season. Examples of non-stochastic climate variables include air temperature, air diff --git a/pyproject.toml b/pyproject.toml index c5977be..a73cf2e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,6 +51,7 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Utilities", "Topic :: Scientific/Engineering", @@ -82,14 +83,12 @@ local_scheme = "no-local-version" [tool.pytest] junit_family = "xunit2" testpaths = ["tests"] - -[tool.pytest.ini_options] cache_dir = ".cache/pytest" markers = [ "wip: Used to run a specific test by hand.", "flaky: Use to retry flaky tests", ] -addopts = "--maxfail=1" +addopts = ["--maxfail=1"] [tool.coverage.run] source = ["cmethods"]