Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update packaging #24

Merged
merged 4 commits into from
Feb 14, 2025
Merged
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
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ jobs:
environment-file: environment.yml
miniforge-version: latest
use-mamba: true
conda-remove-defaults: "true"
- name: Install development packages
run: pip install --requirement requirements.txt
- name: Check formatting
run: |
black --skip-string-normalization --check .
isort --conda-env infresnel --profile black --check-only .
black --check .
isort --check-only .
- name: Run tests
run: pytest --capture=no
6 changes: 4 additions & 2 deletions infresnel/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
from . import _version
from importlib.metadata import version

from .infresnel import calculate_paths, calculate_paths_grid

__version__ = _version.get_versions()['version']
__version__ = version('infresnel')
del version
Loading
Loading