From 7139e155bd50df314c85bc244c09bcee44a0e73d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 22 Apr 2024 21:56:59 +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/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/DavidAnson/markdownlint-cli2: v0.12.1 → v0.13.0](https://github.com/DavidAnson/markdownlint-cli2/compare/v0.12.1...v0.13.0) - [github.com/asottile/pyupgrade: v3.15.0 → v3.15.2](https://github.com/asottile/pyupgrade/compare/v3.15.0...v3.15.2) - [github.com/astral-sh/ruff-pre-commit: v0.1.14 → v0.4.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.14...v0.4.1) - [github.com/psf/black-pre-commit-mirror: 23.12.1 → 24.4.0](https://github.com/psf/black-pre-commit-mirror/compare/23.12.1...24.4.0) - [github.com/kynan/nbstripout: 0.6.1 → 0.7.1](https://github.com/kynan/nbstripout/compare/0.6.1...0.7.1) --- .pre-commit-config.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 397106f..06a8b28 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 # Use the ref you want to point at + rev: v4.6.0 # Use the ref you want to point at hooks: - id: check-case-conflict - id: check-docstring-first @@ -19,26 +19,26 @@ repos: types: [python, yaml, markdown] - repo: https://github.com/DavidAnson/markdownlint-cli2 - rev: v0.12.1 + rev: v0.13.0 hooks: - id: markdownlint-cli2 args: [] - repo: https://github.com/asottile/pyupgrade - rev: v3.15.0 + rev: v3.15.2 hooks: - id: pyupgrade args: [--py38-plus] - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.1.14 + rev: v0.4.1 hooks: - id: ruff args: [ --fix, --exit-non-zero-on-fix ] - repo: https://github.com/psf/black-pre-commit-mirror - rev: 23.12.1 + rev: 24.4.0 hooks: - id: black types: [python] @@ -47,7 +47,7 @@ repos: - id: black-jupyter - repo: https://github.com/kynan/nbstripout - rev: 0.6.1 + rev: 0.7.1 hooks: - id: nbstripout From 3e6b5217fc3b429d21bdb3dc09bf1686fd261824 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 22 Apr 2024 21:57:12 +0000 Subject: [PATCH 2/2] [pre-commit.ci] Fixing issues with pre-commit --- tests/test_asd.py | 1 + topofileformats/__init__.py | 1 + topofileformats/asd.py | 1 + 3 files changed, 3 insertions(+) diff --git a/tests/test_asd.py b/tests/test_asd.py index 32234f7..d554f70 100644 --- a/tests/test_asd.py +++ b/tests/test_asd.py @@ -1,4 +1,5 @@ """Test the functioning of loading .asd files.""" + from pathlib import Path import pytest diff --git a/topofileformats/__init__.py b/topofileformats/__init__.py index e1f28fa..789c92b 100644 --- a/topofileformats/__init__.py +++ b/topofileformats/__init__.py @@ -1,4 +1,5 @@ """topofileformats.""" + from importlib.metadata import version release = version("topofileformats") diff --git a/topofileformats/asd.py b/topofileformats/asd.py index a9c2225..a4d86dd 100644 --- a/topofileformats/asd.py +++ b/topofileformats/asd.py @@ -1,4 +1,5 @@ """For decoding and loading .asd AFM file format into Python Numpy arrays.""" + from __future__ import annotations from pathlib import Path from typing import BinaryIO