Skip to content

Commit

Permalink
Pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ariostas authored Nov 11, 2024
1 parent b29cefa commit 4f35b71
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ repos:
rev: v2.5.0
hooks:
- id: setup-cfg-fmt
args: [--include-version-classifiers, --max-py-version=3.11]
args: [--include-version-classifiers, --max-py-version=3.13]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.2
Expand Down
5 changes: 1 addition & 4 deletions src/skhep_testdata/local_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@

from . import data, remote_files

if sys.version_info < (3, 9):
import importlib_resources as resources # pragma: no cover
else:
from importlib import resources
from importlib import resources

__all__ = ("data_path", "download_all", "known_files")

Expand Down
5 changes: 1 addition & 4 deletions src/skhep_testdata/remote_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@

import yaml

if sys.version_info < (3, 9):
import importlib_resources as resources # pragma: no cover
else:
from importlib import resources
from importlib import resources

_default_data_dir = os.path.realpath(os.path.dirname(__file__))

Expand Down

0 comments on commit 4f35b71

Please sign in to comment.