-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from DHI-GRAS/repo-review
Use the new pytporject.toml instead of the deprecated setup.py
- Loading branch information
Showing
10 changed files
with
161 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: ruff_push | ||
on: [push] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
- run: | | ||
python -m pip install --upgrade pip | ||
pip install ruff | ||
- run: ruff check --output-format=github . | ||
- name: If needed, commit ruff changes to a new pull request | ||
if: failure() | ||
run: | | ||
ruff check --output-format=github --fix . | ||
git config --global user.name github-actions | ||
git config --global user.email '${GITHUB_ACTOR}@users.noreply.github.com' | ||
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY | ||
git commit -am "fixup! Format Python code with ruff push" | ||
git push --force origin HEAD:$GITHUB_REF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from .efast import fusion |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
[build-system] | ||
requires = ["setuptools >= 61.0"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "pyefast" | ||
authors = [ | ||
{name = "sa", email = "[email protected]"}, | ||
] | ||
description = "My package description" | ||
readme = "README.md" | ||
dynamic = ["version"] | ||
dependencies = [ | ||
"python-dateutil", | ||
"numpy", | ||
"pandas", | ||
"rasterio", | ||
"scipy", | ||
"tqdm", | ||
"pyproj", | ||
"shapely", | ||
"astropy", | ||
"snap-graph @ git+https://github.com/DHI-GRAS/snap-graph", | ||
|
||
] | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"ruff", | ||
] | ||
|
||
[tool.setuptools.packages.find] | ||
include = ["pyefast"] | ||
|
||
[tool.ruff.lint] | ||
select = ["I"] | ||
|
||
[tool.ruff.lint.isort] | ||
# Use a single line between direct and from import. | ||
lines-between-types = 1 |
Oops, something went wrong.