Skip to content

Commit

Permalink
Merge pull request #32 from lanl/repo_config_adjust_3rd_attemp
Browse files Browse the repository at this point in the history
Enable checks and add placeholder modules for future implementation
  • Loading branch information
KedoKudo authored Jan 31, 2025
2 parents 35e6a3f + 2bda518 commit ab30e90
Show file tree
Hide file tree
Showing 9 changed files with 56 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/unittest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ on:
pull_request:
branches:
- main
- v2.0
push:
branches:
- main
- v2.0

jobs:
test:
Expand Down
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@ repos:
args: [--allow-multiple-documents]
exclude: "conda.recipe/meta.yaml"
- id: end-of-file-fixer
exclude: "tests/data/.*"
exclude: "(tests/data/.*|src/pleiades/data/.*)"
- id: trailing-whitespace
exclude: "tests/data/.*"
exclude: "(tests/data/.*|src/pleiades/data/.*)"
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.3
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
exclude: "(tests/data/.*|legacy/.*)"
exclude: "(tests/data/.*|legacy/.*|src/pleiades/data/.*)"
- id: ruff-format
exclude: "(tests/data/.*|legacy/.*)"
exclude: "(tests/data/.*|legacy/.*|src/pleiades/data/.*)"
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
exclude: "(tests/data/.*|.*\\.ipynb)|poetry.lock"
exclude: "(tests/data/.*|.*\\.ipynb|poetry.lock|src/pleiades/data/.*)"
args: ["--ignore-words-list=DELTE"]
7 changes: 3 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
.. image:: ./docs/images/PLEIADES.jpg
:alt: **PLEIADES:** Python Libraries Extensions for Isotopic Analysis via Detailed Examination of SAMMY.
:align: center

PLEIADES
========
.. image:: https://results.pre-commit.ci/badge/github/lanl/PLEIADES/main.svg
:target: https://results.pre-commit.ci/latest/github/lanl/PLEIADES/main
:alt: pre-commit.ci status

.. image:: https://readthedocs.org/projects/example-sphinx-basic/badge/?version=latest
:target: https://pleiades-sammy.readthedocs.io/en/latest/
Expand Down
5 changes: 5 additions & 0 deletions src/pleiades/sammy/parameters/background.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env python
"""Background function card for SAMMY.
TODO: This card will be implemented in the future.
"""
5 changes: 5 additions & 0 deletions src/pleiades/sammy/parameters/det_efficiency.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env python
"""Detector efficiency function card for SAMMY.
TODO: This card will be implemented in the future.
"""
5 changes: 5 additions & 0 deletions src/pleiades/sammy/parameters/resolution.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env python
"""Resolution function card for SAMMY.
TODO: This module will be implemented in the future.
"""
10 changes: 10 additions & 0 deletions tests/unit/pleiades/sammy/parameters/test_background.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env python
"""Tests for the background function card.
TODO: This test will be implemented in the future when the card is implemented.
"""

import pytest

if __name__ == "__main__":
pytest.main(["-v", __file__])
11 changes: 11 additions & 0 deletions tests/unit/pleiades/sammy/parameters/test_det_efficiency.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env python
"""Tests for the detector efficiency function card.
TODO: This test will be implemented in the future when the card is implemented.
"""

import pytest

if __name__ == "__main__":
pytest.main(["-v", __file__])
10 changes: 10 additions & 0 deletions tests/unit/pleiades/sammy/parameters/test_resolution.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env python
"""Tests for the resolution function card.
TODO: This test will be implemented in the future when the card is implemented.
"""

import pytest

if __name__ == "__main__":
pytest.main(["-v", __file__])

0 comments on commit ab30e90

Please sign in to comment.