From 0e2eb90b3409681681223b3a91515189716c1bed Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 3 Jun 2024 17:56:50 -0400 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#160) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/psf/black-pre-commit-mirror: 23.11.0 → 24.4.2](https://github.com/psf/black-pre-commit-mirror/compare/23.11.0...24.4.2) - [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v4.6.0) - [github.com/astral-sh/ruff-pre-commit: v0.1.6 → v0.4.7](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.6...v0.4.7) - [github.com/pre-commit/mirrors-mypy: v1.7.1 → v1.10.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.7.1...v1.10.0) - [github.com/codespell-project/codespell: v2.2.6 → v2.3.0](https://github.com/codespell-project/codespell/compare/v2.2.6...v2.3.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 10 +++++----- src/uproot_browser/__init__.py | 1 + src/uproot_browser/dirs.py | 1 + src/uproot_browser/exceptions.py | 1 - 4 files changed, 7 insertions(+), 6 deletions(-) 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