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 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