Skip to content

Commit 5fc3528

Browse files
[pre-commit.ci] pre-commit autoupdate (#1967)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/mirrors-mypy: v1.11.2 → v1.12.1](pre-commit/mirrors-mypy@v1.11.2...v1.12.1) * remove import checks for old pythons --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Remi Gau <[email protected]>
1 parent 790c0fb commit 5fc3528

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ repos:
7373
- id: codespell
7474
args: ["--config=.codespellrc", "--dictionary=-", "--dictionary=.codespell_dict"]
7575
- repo: https://github.com/pre-commit/mirrors-mypy
76-
rev: v1.11.2
76+
rev: v1.12.1
7777
hooks:
7878
- id: mypy
7979
# Sync with project.optional-dependencies.typing

tools/schemacode/bidsschematools/conftest.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
import logging
22
import tempfile
3+
from importlib.resources import as_file, files
34
from subprocess import run
45

5-
try:
6-
from importlib.resources import as_file, files
7-
except ImportError: # PY<3.9
8-
from importlib_resources import as_file, files
9-
106
import pytest
117

128
lgr = logging.getLogger()

tools/schemacode/bidsschematools/tests/test_make_testdata.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
import os
22
import shutil
3-
4-
try:
5-
from importlib.resources import files
6-
except ImportError: # PY<3.9
7-
from importlib_resources import files
3+
from importlib.resources import files
84

95
import pytest
106

0 commit comments

Comments
 (0)