Skip to content

Commit 53ab889

Browse files
authored
Avoid using py311 with pylint (#100)
1 parent a2a9e6e commit 53ab889

File tree

2 files changed

+13
-33
lines changed

2 files changed

+13
-33
lines changed

.github/workflows/tox.yml

+9-33
Original file line numberDiff line numberDiff line change
@@ -12,65 +12,41 @@ on:
1212
jobs:
1313
build:
1414
name: ${{ matrix.name }}
15-
runs-on: ${{ matrix.os }}
15+
runs-on: ${{ matrix.os || 'ubuntu-latest' }}
1616

1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
name: [
21-
"docs",
22-
"py36",
23-
"py37",
24-
"py38",
25-
"py39",
26-
"py310",
27-
"lint",
28-
"packaging",
29-
]
30-
os: [
31-
"ubuntu-latest",
32-
]
33-
3420
include:
35-
3621
- name: docs
37-
python: "3.6"
38-
os: ubuntu-latest
22+
python: "3.10"
3923
tox_env: docs
24+
- name: "lint"
25+
python: "3.10"
26+
tox_env: "lint"
27+
- name: "packaging"
28+
python: "3.10"
29+
tox_env: "packaging"
30+
4031
- name: py36
4132
python: "3.6"
42-
os: ubuntu-latest
4333
tox_env: py36
4434
- name: py37
4535
python: "3.7"
46-
os: ubuntu-latest
4736
tox_env: py37
4837
- name: py38
4938
python: "3.8"
50-
os: ubuntu-latest
5139
tox_env: py38
5240
- name: py39
5341
python: "3.9"
54-
os: ubuntu-latest
5542
tox_env: py39
5643
- name: py310
5744
python: "3.10"
58-
os: ubuntu-latest
5945
tox_env: py310
6046
- name: py311
6147
python: "~3.11.0-0" # see https://github.com/actions/setup-python/issues/213#issuecomment-1146676713
62-
os: ubuntu-latest
6348
tox_env: py311
6449

65-
- name: "lint"
66-
python: "3.7"
67-
os: ubuntu-latest
68-
tox_env: "lint"
69-
- name: "packaging"
70-
python: "3.7"
71-
os: ubuntu-latest
72-
tox_env: "packaging"
73-
7450
steps:
7551
- uses: actions/checkout@v3
7652
- name: Set up Python ${{ matrix.python }}

.pre-commit-config.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
---
2+
default_language_version:
3+
# Enforce use of py310 because pylint does not support py311 yet, causing
4+
# failures for those happening to have that as default python.
5+
python: python3.10
26
repos:
37
- repo: https://github.com/pre-commit/pre-commit-hooks
48
rev: v4.3.0 # Use the ref you want to point at

0 commit comments

Comments
 (0)