From 27b2672b0f17e0e0cc638cb7fecd97e33af636df Mon Sep 17 00:00:00 2001 From: Hagen Wierstorf Date: Mon, 16 Dec 2024 21:19:06 +0100 Subject: [PATCH] TST: update ruff and codespell versions (#42) --- .pre-commit-config.yaml | 4 ++-- auglib/core/transform.py | 2 +- auglib/observe/__init__.py | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 119cb13..4b10603 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,13 +13,13 @@ default_language_version: repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.8 + rev: v0.7.0 hooks: - id: ruff args: [ --fix ] - id: ruff-format - repo: https://github.com/codespell-project/codespell - rev: v2.2.4 + rev: v2.3.0 hooks: - id: codespell additional_dependencies: diff --git a/auglib/core/transform.py b/auglib/core/transform.py index 18c1380..cb5e8f4 100644 --- a/auglib/core/transform.py +++ b/auglib/core/transform.py @@ -187,7 +187,7 @@ def __call__( is not support by chosen transform parameters ValueError: if ``sampling_rate`` is ``None``, - but the transform requires a samling rate + but the transform requires a sampling rate RuntimeError: if the given sampling rate is incompatible with the transform diff --git a/auglib/observe/__init__.py b/auglib/observe/__init__.py index 901cbf0..2cc4e35 100644 --- a/auglib/observe/__init__.py +++ b/auglib/observe/__init__.py @@ -52,6 +52,7 @@ def __call__(self) -> int: """ + from auglib.core.observe import Base from auglib.core.observe import Bool from auglib.core.observe import FloatNorm