From 76ccba57a91c57ca7ab901e2545896a5b987309b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 31 Aug 2026 22:43:49 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/adrienverge/yamllint.git: v1.26.3 → v1.38.0](https://github.com/adrienverge/yamllint.git/compare/v1.26.3...v1.38.0) - [github.com/pycqa/isort: 5.10.1 → 9.0.1](https://github.com/pycqa/isort/compare/5.10.1...9.0.1) - [github.com/pre-commit/pre-commit-hooks: v4.3.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.3.0...v6.0.0) - [github.com/asottile/add-trailing-comma: v2.2.3 → v4.0.0](https://github.com/asottile/add-trailing-comma/compare/v2.2.3...v4.0.0) - [github.com/asottile/pyupgrade: v2.34.0 → v3.21.2](https://github.com/asottile/pyupgrade/compare/v2.34.0...v3.21.2) - https://github.com/psf/black → https://github.com/psf/black-pre-commit-mirror - [github.com/psf/black-pre-commit-mirror: 22.6.0 → 26.5.1](https://github.com/psf/black-pre-commit-mirror/compare/22.6.0...26.5.1) --- .pre-commit-config.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c79a4ef..d7bd550 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,34 +1,34 @@ repos: - repo: https://github.com/adrienverge/yamllint.git - rev: v1.26.3 + rev: v1.38.0 hooks: - id: yamllint args: [-c=.yamllint.yml] - repo: https://github.com/pycqa/isort - rev: 5.10.1 + rev: 9.0.1 hooks: - id: isort - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v6.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer - id: check-added-large-files - repo: https://github.com/asottile/add-trailing-comma - rev: v2.2.3 + rev: v4.0.0 hooks: - id: add-trailing-comma - repo: https://github.com/asottile/pyupgrade - rev: v2.34.0 + rev: v3.21.2 hooks: - id: pyupgrade - - repo: https://github.com/psf/black - rev: 22.6.0 + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 26.5.1 hooks: - id: black args: ["--safe"] From 489e5307901178f47bc3ebcaccaef2826056eb2a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 31 Aug 2026 22:44:24 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- setup.py | 2 +- src/pydab/util.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 6b9fe95..da0ee51 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,5 @@ -# -*- coding: utf-8 -*- """Setup module.""" + import setuptools if __name__ == "__main__": diff --git a/src/pydab/util.py b/src/pydab/util.py index e894754..da4b0a1 100644 --- a/src/pydab/util.py +++ b/src/pydab/util.py @@ -7,5 +7,5 @@ def config_logger(): """Configure logger using the config file.""" path = pathlib.Path(__file__).absolute().parent.joinpath("logging.yaml") - with open(path, "r") as f: + with open(path) as f: logging.config.dictConfig(yaml.safe_load(f.read()))