Skip to content

Commit

Permalink
chore: Use python 3.11 in GH actions
Browse files Browse the repository at this point in the history
Using latest python will help us to identify
latest changes and regressions early in upstream PRs.
Bumped repo versions in .pre-commit-config.yaml
to point to latest stable releases per available check.

Signed-off-by: Tibor Dudlák <[email protected]>
  • Loading branch information
Tiboris committed Dec 1, 2022
1 parent a7bf366 commit b87a34a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: 3.11
- uses: pre-commit/[email protected]
6 changes: 3 additions & 3 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: 3.11
- uses: pre-commit/[email protected]

test:
Expand All @@ -24,7 +24,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: 3.11
- name: Install Tox and any other packages
run: pip install tox
- name: Run Tox
Expand All @@ -38,7 +38,7 @@ jobs:
steps:
- uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: 3.11
- name: Display Python version
run: python --version
- name: Set up changelog date to use later
Expand Down
16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
default_language_version:
python: python3.9
python: python3.11

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.3.0
rev: v4.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
Expand All @@ -16,23 +16,23 @@ repos:
- id: check-merge-conflict

- repo: https://github.com/jorisroovers/gitlint
rev: v0.14.0
rev: v0.18.0
hooks:
- id: gitlint

- repo: https://github.com/adrienverge/yamllint
rev: v1.25.0
rev: v1.28.0
hooks:
- id: yamllint

- repo: https://github.com/PyCQA/pydocstyle
rev: 5.1.1
rev: 6.1.1
hooks:
- id: pydocstyle
files: ^src/.*

- repo: https://github.com/ambv/black
rev: 22.3.0
rev: 22.10.0
hooks:
- id: black
exclude: ^docs/.*
Expand All @@ -41,14 +41,14 @@ repos:
require_serial: true

- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.6.4
rev: v5.10.1
hooks:
- id: isort
additional_dependencies: [toml]
exclude: ^docs/.*$

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.790
rev: v0.991
hooks:
- id: mypy
exclude: ^(docs|tests)/.*$
Expand Down
4 changes: 2 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ pool:
vmImage: 'ubuntu-latest'
strategy:
matrix:
Python39:
python.version: '3.9'
Python311:
python.version: '3.11'

steps:
- task: UsePythonVersion@0
Expand Down

0 comments on commit b87a34a

Please sign in to comment.