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/" 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", ]