Skip to content

Commit

Permalink
Bump to Python 3.10 in prep for 3.9 EOL on 2025-10
Browse files Browse the repository at this point in the history
  • Loading branch information
CloCkWeRX committed Feb 9, 2025
1 parent 8589793 commit 2def1e4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2def1e4

Please sign in to comment.