-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
20 changed files
with
153 additions
and
563 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,34 +1,30 @@ | ||
name: tests | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
on: push | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [ '3.7', '3.8', '3.9', '3.10' ] | ||
python-version: [ '3.8', '3.9', '3.10', '3.11' ] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -e .[test] | ||
pip install hatch | ||
- name: Store EE token | ||
run: | | ||
python ./.github/scripts/make_ee_token.py | ||
env: | ||
EE_TOKEN: ${{ secrets.EE_TOKEN }} | ||
- name: Test with pytest | ||
run: | | ||
pytest . | ||
hatch run test:all |
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 |
---|---|---|
@@ -1,19 +1,27 @@ | ||
repos: | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.7.0 | ||
hooks: | ||
- id: pyupgrade | ||
args: [--py38-plus] | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 21.7b0 | ||
rev: 23.3.0 | ||
hooks: | ||
- id: black | ||
args: [--line-length=100] | ||
|
||
- repo: https://github.com/pycqa/isort | ||
rev: 5.8.0 | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
args: [--profile, black] | ||
|
||
- repo: https://github.com/pycqa/flake8 | ||
rev: 4.0.0 | ||
rev: 6.0.0 | ||
hooks: | ||
- id: flake8 | ||
args: [--max-line-length=100] | ||
exclude: docs|tests|setup.py | ||
- id: flake8 | ||
args: [--max-line-length, '100'] | ||
exclude: docs|tests|setup.py | ||
additional_dependencies: | ||
- flake8-bugbear |
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,3 @@ | ||
sphinx==7.0.1 | ||
nbsphinx | ||
sphinx_rtd_theme |
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,76 @@ | ||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "sankee" | ||
dynamic = ["version"] | ||
description = "Visualize classified time series data with interactive Sankey plots in Google Earth Engine." | ||
readme = "README.md" | ||
license = "MIT" | ||
requires-python = ">=3.8" | ||
authors = [ | ||
{ name = "Aaron Zuspan", email = "aazuspan@gmail.com" }, | ||
] | ||
keywords = [ | ||
"earth-engine", | ||
"sankey", | ||
"land-cover", | ||
"visualization", | ||
] | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Science/Research", | ||
"Topic :: Scientific/Engineering :: GIS", | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
] | ||
dependencies = [ | ||
"earthengine-api>=0.1.230", | ||
"numpy", | ||
"pandas", | ||
"plotly>=5.2.2", | ||
"ipywidgets" | ||
] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/aazuspan/sankee" | ||
Source = "https://github.com/aazuspan/sankee" | ||
|
||
[tool.hatch.version] | ||
path = "sankee/__init__.py" | ||
|
||
[tool.hatch.build.targets.sdist] | ||
include = ["sankee"] | ||
|
||
[tool.hatch.envs.default] | ||
dependencies = [ | ||
"pre-commit" | ||
] | ||
|
||
[tool.hatch.envs.docs] | ||
dependences = [ | ||
"nbsphinx", | ||
"sphinx", | ||
"sphinx_rtd_theme", | ||
] | ||
|
||
[tool.hatch.envs.docs.scripts] | ||
build = "sphinx-build -b html docs docs/_build/html" | ||
view = "python -m webbrowser -t docs/_build/html/index.html" | ||
|
||
|
||
[tool.hatch.envs.test] | ||
dependencies = [ | ||
"pytest", | ||
"pytest-cov", | ||
] | ||
|
||
[tool.hatch.envs.test.scripts] | ||
all = "pytest . {args}" | ||
coverage = "pytest . --cov=sankee {args}" | ||
view-coverage = "python -m webbrowser -t htmlcov/index.html" |
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
Oops, something went wrong.