From 4d524d8018b0df9ccc71b5b9f0af10be167d5bea Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 2 Mar 2026 22:49:50 +0000 Subject: [PATCH 1/2] ci(pre-commit.ci): autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/compilerla/conventional-pre-commit: v3.1.0 → v4.4.0](https://github.com/compilerla/conventional-pre-commit/compare/v3.1.0...v4.4.0) - [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v6.0.0) - https://github.com/charliermarsh/ruff-pre-commit → https://github.com/astral-sh/ruff-pre-commit - [github.com/astral-sh/ruff-pre-commit: v0.1.13 → v0.15.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.13...v0.15.4) - https://github.com/psf/black → https://github.com/psf/black-pre-commit-mirror - [github.com/psf/black-pre-commit-mirror: 22.10.0 → 26.1.0](https://github.com/psf/black-pre-commit-mirror/compare/22.10.0...26.1.0) - [github.com/abravalheri/validate-pyproject: v0.15 → v0.25](https://github.com/abravalheri/validate-pyproject/compare/v0.15...v0.25) - [github.com/pre-commit/mirrors-mypy: v1.8.0 → v1.19.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.8.0...v1.19.1) --- .pre-commit-config.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3262b70..0d9760d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,36 +7,36 @@ default_install_hook_types: [pre-commit, commit-msg] repos: - repo: https://github.com/compilerla/conventional-pre-commit - rev: v3.1.0 + rev: v4.4.0 hooks: - id: conventional-pre-commit stages: [commit-msg] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v6.0.0 hooks: - id: check-docstring-first - id: end-of-file-fixer - id: trailing-whitespace - - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: v0.1.13 + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.15.4 hooks: - id: ruff args: [--fix] - - repo: https://github.com/psf/black - rev: 22.10.0 + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 26.1.0 hooks: - id: black - repo: https://github.com/abravalheri/validate-pyproject - rev: v0.15 + rev: v0.25 hooks: - id: validate-pyproject - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.8.0 + rev: v1.19.1 hooks: - id: mypy files: "^src/" From bce466614fdfd4d133cbdaee728b27f26808d6b1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 2 Mar 2026 22:53:50 +0000 Subject: [PATCH 2/2] style(pre-commit.ci): auto fixes [...] --- setup.py | 6 ++---- src/raman_analysis/__init__.py | 1 + src/raman_analysis/preprocessing.py | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/setup.py b/setup.py index 1e26c0a..a95f2fa 100644 --- a/setup.py +++ b/setup.py @@ -1,14 +1,12 @@ import sys -sys.stderr.write( - """ +sys.stderr.write(""" =============================== Unsupported installation method =============================== raman-analysis does not support installation with `python setup.py install`. Please use `python -m pip install .` instead. -""" -) +""") sys.exit(1) diff --git a/src/raman_analysis/__init__.py b/src/raman_analysis/__init__.py index e7506f6..fc00b0e 100644 --- a/src/raman_analysis/__init__.py +++ b/src/raman_analysis/__init__.py @@ -1,4 +1,5 @@ """Analysis of raman spectra from MIT scope.""" + from importlib.metadata import PackageNotFoundError, version try: diff --git a/src/raman_analysis/preprocessing.py b/src/raman_analysis/preprocessing.py index 9fb0b18..e37a224 100644 --- a/src/raman_analysis/preprocessing.py +++ b/src/raman_analysis/preprocessing.py @@ -8,10 +8,10 @@ from scipy.signal import find_peaks __all__ = [ + "baseline", "find_cosmic_rays", - "remove_cosmic_rays", "group_spectra_points", - "baseline", + "remove_cosmic_rays", ]