Skip to content

Commit

Permalink
chore: Use python 3.10 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 ad26c18 commit 9114f10
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 17 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.10
- 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.10
- 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.10
- 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.10
- name: Display Python version
run: python --version
- name: Set up changelog date to use later
Expand Down
21 changes: 10 additions & 11 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.10

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,24 +41,23 @@ 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)/.*$
args: ["--ignore-missing-imports"]
additional_dependencies: ["types-PyYAML", "types-python-dateutil"]

- repo: https://github.com/pre-commit/mirrors-pylint
rev: v2.7.4
rev: v3.0.0a5
hooks:
- id: pylint
additional_dependencies: ["isort[pyproject]"]
exclude: ^(docs/|tests/).*$
# disabled import-error as may be run out of environment with deps
args: ["--disable=import-error"]
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'
Python310:
python.version: '3.10'

steps:
- task: UsePythonVersion@0
Expand Down

0 comments on commit 9114f10

Please sign in to comment.