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
33 changes: 33 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Test

on:
push:
branches: [main]
pull_request:

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install pre-commit
- run: pre-commit run --all-files

test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: |
python -m pip install --upgrade pip
python -m pip install pytest
python -m pip install -e .
- run: pytest tests/ -v
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
__pycache__
.DS_Store
dist/**
fwe.egg-info
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.13
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
1 change: 0 additions & 1 deletion fwe/__init__.py

This file was deleted.

134 changes: 0 additions & 134 deletions fwe/fwe.py

This file was deleted.

12 changes: 11 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
]

dependencies = [
Expand All @@ -24,4 +26,12 @@ dependencies = [

[project.urls]
Homepage = "https://github.com/nrdg/fwe"
Issues = "https://github.com/nrdg/fwe/issues"
Issues = "https://github.com/nrdg/fwe/issues"

[tool.setuptools.packages.find]
where = ["src"]
include = ["fwe*"]
exclude = ["tests*"]

[tool.ruff]
line-length = 88
1 change: 1 addition & 0 deletions src/fwe/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .fwe import free_water_elimination # noqa: F401
Loading
Loading