Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#1967)
Browse files Browse the repository at this point in the history
* [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]>
  • Loading branch information
pre-commit-ci[bot] and Remi-Gau authored Oct 23, 2024
1 parent 790c0fb commit 5fc3528
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 1 addition & 5 deletions tools/schemacode/bidsschematools/conftest.py
Original file line number Diff line number Diff line change
@@ -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()
Expand Down
6 changes: 1 addition & 5 deletions tools/schemacode/bidsschematools/tests/test_make_testdata.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 5fc3528

Please sign in to comment.