Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
6 changes: 2 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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)


Expand Down
1 change: 1 addition & 0 deletions src/raman_analysis/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Analysis of raman spectra from MIT scope."""

from importlib.metadata import PackageNotFoundError, version

try:
Expand Down
4 changes: 2 additions & 2 deletions src/raman_analysis/preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]


Expand Down
Loading