diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index 16b969c..0a3d84b 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -18,7 +18,7 @@ jobs: steps: - name: Determine matrix id: generate_matrix - uses: coactions/matrix@main + uses: coactions/matrix@v3 with: other_names: | lint @@ -48,8 +48,8 @@ jobs: python -m pip install --upgrade pip pip install tox>=4.0 - - name: tox run -e ${{ matrix.passed_name }} - run: tox run -e ${{ matrix.passed_name }} + - name: ${{ matrix.name }} + run: ${{ matrix.command }} check: # This job does nothing and is only used for the branch protection if: always() diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4c2e43a..df9ba4b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,8 +1,4 @@ --- -default_language_version: - # Enforce use of py310 because pylint does not support py311 yet, causing - # failures for those happening to have that as default python. - python: python3.10 repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.5.0 # Use the ref you want to point at diff --git a/pyproject.toml b/pyproject.toml index de8f446..b97934c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -71,11 +71,11 @@ filterwarnings = [ ] [[tool.mypy.overrides]] -python_version = "3.8" module = [ "doc8._version", "restructuredtext_lint", "stevedore", + "tomli", ] ignore_missing_imports = true diff --git a/src/doc8/main.py b/src/doc8/main.py index 9206470..4cae8c4 100644 --- a/src/doc8/main.py +++ b/src/doc8/main.py @@ -41,7 +41,7 @@ from tomllib import load as toml_load # type: ignore except ImportError: # py3.10 or older - from tomli import load as toml_load + from tomli import load as toml_load # type: ignore[no-redef] from stevedore import extension