diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 28e7a47..e7abaac 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,11 +1,11 @@ repos: - repo: https://github.com/psf/black-pre-commit-mirror - rev: 23.11.0 + rev: 24.4.2 hooks: - id: black - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v4.6.0 hooks: - id: check-added-large-files - id: check-case-conflict @@ -19,13 +19,13 @@ repos: - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.1.6" + rev: "v0.4.7" hooks: - id: ruff args: ["--fix", "--show-fixes"] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.7.1 + rev: v1.10.0 hooks: - id: mypy files: src @@ -37,7 +37,7 @@ repos: - textual>=0.32 - repo: https://github.com/codespell-project/codespell - rev: v2.2.6 + rev: v2.3.0 hooks: - id: codespell args: [-L, "hist,iterm"] diff --git a/src/uproot_browser/__init__.py b/src/uproot_browser/__init__.py index f325edc..1770b5c 100644 --- a/src/uproot_browser/__init__.py +++ b/src/uproot_browser/__init__.py @@ -2,6 +2,7 @@ This is uproot-browser. There is no user accessible API; only a terminal interface is provided currently. """ + from __future__ import annotations from ._version import version as __version__ diff --git a/src/uproot_browser/dirs.py b/src/uproot_browser/dirs.py index 14cb4f4..7b2559e 100644 --- a/src/uproot_browser/dirs.py +++ b/src/uproot_browser/dirs.py @@ -2,6 +2,7 @@ This holds common functions for accessing a file, ROOT directories, and trees split by colons. """ + from __future__ import annotations from typing import Any, Iterable diff --git a/src/uproot_browser/exceptions.py b/src/uproot_browser/exceptions.py index 153fd21..c07b078 100644 --- a/src/uproot_browser/exceptions.py +++ b/src/uproot_browser/exceptions.py @@ -1,6 +1,5 @@ """Custom exceptions for uproot-browser""" - from __future__ import annotations