From 2def1e495d1fd3532839dc4046c8a7298331d8f4 Mon Sep 17 00:00:00 2001 From: Daniel O'Connor Date: Sun, 9 Feb 2025 03:13:49 +0000 Subject: [PATCH] Bump to Python 3.10 in prep for 3.9 EOL on 2025-10 --- .github/workflows/python-package.yml | 2 +- Makefile | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index ed1934ba..f9dac15a 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -18,7 +18,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.9', '3.10', '3.11', '3.12'] + python-version: ['3.10', '3.11', '3.12'] steps: - uses: actions/checkout@v2 diff --git a/Makefile b/Makefile index 94bfce76..14201469 100644 --- a/Makefile +++ b/Makefile @@ -113,18 +113,18 @@ pre-commit: .git/hooks/pre-commit ## Create the pre-commit hook # Linting and code analysis .PHONY: black black: venv ## Format the code using black - $(BLACK) --safe --line-length 120 --target-version py39 $(PACKAGE_DIR) - $(BLACK) --safe --line-length 120 --target-version py39 $(TEST_DIR) + $(BLACK) --safe --line-length 120 --target-version py310 $(PACKAGE_DIR) + $(BLACK) --safe --line-length 120 --target-version py310 $(TEST_DIR) ifneq ("$(wildcard setup.py)", "") - $(BLACK) --safe --line-length 120 --target-version py39 setup.py + $(BLACK) --safe --line-length 120 --target-version py310 setup.py endif .PHONY: lint-black lint-black: venv ## Check that the code is formatted using black - $(BLACK) --check --line-length 120 --safe --target-version py39 $(PACKAGE_DIR) - $(BLACK) --check --line-length 120 --safe --target-version py39 $(TEST_DIR) + $(BLACK) --check --line-length 120 --safe --target-version py310 $(PACKAGE_DIR) + $(BLACK) --check --line-length 120 --safe --target-version py310 $(TEST_DIR) ifneq ("$(wildcard setup.py)", "") - $(BLACK) --check --line-length 120 --safe --target-version py39 setup.py + $(BLACK) --check --line-length 120 --safe --target-version py310 setup.py endif .PHONY: lint-flake8