diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 935f9ac183..1fdac33ecb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -73,7 +73,7 @@ repos: - id: codespell args: ["--config=.codespellrc", "--dictionary=-", "--dictionary=.codespell_dict"] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.11.2 + rev: v1.12.1 hooks: - id: mypy # Sync with project.optional-dependencies.typing diff --git a/tools/schemacode/bidsschematools/conftest.py b/tools/schemacode/bidsschematools/conftest.py index 2e5eaec86f..2b87854a99 100644 --- a/tools/schemacode/bidsschematools/conftest.py +++ b/tools/schemacode/bidsschematools/conftest.py @@ -1,12 +1,8 @@ import logging import tempfile +from importlib.resources import as_file, files from subprocess import run -try: - from importlib.resources import as_file, files -except ImportError: # PY<3.9 - from importlib_resources import as_file, files - import pytest lgr = logging.getLogger() diff --git a/tools/schemacode/bidsschematools/tests/test_make_testdata.py b/tools/schemacode/bidsschematools/tests/test_make_testdata.py index 5721b630d6..8ef6443d8d 100644 --- a/tools/schemacode/bidsschematools/tests/test_make_testdata.py +++ b/tools/schemacode/bidsschematools/tests/test_make_testdata.py @@ -1,10 +1,6 @@ import os import shutil - -try: - from importlib.resources import files -except ImportError: # PY<3.9 - from importlib_resources import files +from importlib.resources import files import pytest