Skip to content

Commit 3aeedab

Browse files
jayaddisonssbarnea
andauthored
ci: update to coactions/dynamic-matrix v3 (latest) (#161)
* ci: update to `coactions/dynamic-matrix` v3 (latest) * ci: prefer `matrix.name` as step name instead of command * pre-commit: remove py3.10 language default constraint * pyproject.toml: remove language-version constraint from `tomli` * pyproject.toml: remove global language setting from `mypy` module settings * Revert "pyproject.toml: remove language-version constraint from `tomli`" This reverts commit eb47f7a. * pyproject.toml: add `mypy` import-ignore for `tomli` * lint: ignore `mypy` redifinition error --------- Co-authored-by: Sorin Sbarnea <ssbarnea@redhat.com>
1 parent 75561eb commit 3aeedab

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

.github/workflows/tox.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
steps:
1919
- name: Determine matrix
2020
id: generate_matrix
21-
uses: coactions/matrix@main
21+
uses: coactions/matrix@v3
2222
with:
2323
other_names: |
2424
lint
@@ -48,8 +48,8 @@ jobs:
4848
python -m pip install --upgrade pip
4949
pip install tox>=4.0
5050
51-
- name: tox run -e ${{ matrix.passed_name }}
52-
run: tox run -e ${{ matrix.passed_name }}
51+
- name: ${{ matrix.name }}
52+
run: ${{ matrix.command }}
5353

5454
check: # This job does nothing and is only used for the branch protection
5555
if: always()

.pre-commit-config.yaml

-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
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
62
repos:
73
- repo: https://github.com/pre-commit/pre-commit-hooks
84
rev: v4.5.0 # Use the ref you want to point at

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ filterwarnings = [
7171
]
7272

7373
[[tool.mypy.overrides]]
74-
python_version = "3.8"
7574
module = [
7675
"doc8._version",
7776
"restructuredtext_lint",
7877
"stevedore",
78+
"tomli",
7979
]
8080
ignore_missing_imports = true
8181

src/doc8/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
from tomllib import load as toml_load # type: ignore
4242
except ImportError:
4343
# py3.10 or older
44-
from tomli import load as toml_load
44+
from tomli import load as toml_load # type: ignore[no-redef]
4545

4646
from stevedore import extension
4747

0 commit comments

Comments
 (0)