Skip to content

Commit

Permalink
Merge pull request #112 from ArtesiaWater/dev
Browse files Browse the repository at this point in the history
Update master to v0.7.2
  • Loading branch information
ArtesiaWater authored Mar 20, 2023
2 parents cdb97d9 + 4445f07 commit c31a5cb
Show file tree
Hide file tree
Showing 47 changed files with 3,078 additions and 2,458 deletions.
72 changes: 45 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: hydropandas

on:
# Trigger the workflow on push or pull request on master,
# and only on pull-requests on dev branch
push:
branches:
- master
Expand All @@ -12,40 +10,60 @@ on:
- dev

jobs:
build:
runs-on: ubuntu-latest
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
python-version: [3.7]
include:
- name: Test suite with py310-ubuntu
python: "3.10"
os: ubuntu-latest
toxenv: py310
- name: Formatting with black + isort
python: "3.9"
os: ubuntu-latest
toxenv: format
- name: Linting with flake8 + ruff
python: "3.9"
os: ubuntu-latest
toxenv: lint
- name: Test suite for notebooks and coverage
python: "3.9"
os: ubuntu-latest
toxenv: notebooks

name: ${{ matrix.name }}
env:
# Color Output
# Rich (pip)
FORCE_COLOR: 1
# Tox
PY_COLORS: 1
# Pytest
PYTEST_ADDOPTS: "--color=yes"
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
python-version: ${{ matrix.python }}
check-latest: true

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
pip install fsspec>=0.3.3
pip install dask[dataframe] --upgrade
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install codecov
pip install pytest-cov
pip install pytest-dependency
pip install codacy-coverage
pip install -e .
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings.
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=80 --statistics
- name: Run pytest
run: |
pytest
pip install tox
- name: Setup tox environment
run: tox -e ${{ matrix.toxenv }} --notest

- name: Test
run: tox -e ${{ matrix.toxenv }} --skip-pkg-install

- name: Run codacy-coverage-reporter
if: ${{ matrix.toxenv == 'notebooks' && github.repository == 'ArtesiaWater/hydropandas' && success() }}
uses: codacy/codacy-coverage-reporter-action@master
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ ENV/

# VS Code files
.vscode/
*.code-workspace
.pytest_cache/

*.html
Expand Down
5 changes: 3 additions & 2 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ formats: all

# Optionally set the version of Python and requirements required to build your docs
python:
version: 3.7
version: 3.8
install:
- requirements: docs/requirements.txt
- method: pip
path: .
extra_requirements:
- "rtd"

build:
image: latest
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
import os
import sys

sys.path.insert(0, os.path.abspath("."))
from hydropandas import __version__

sys.path.insert(0, os.path.abspath("."))


# -- Project information -----------------------------------------------------

Expand Down
11 changes: 0 additions & 11 deletions docs/requirements.txt

This file was deleted.

44 changes: 22 additions & 22 deletions docs/source/hydropandas.io.rst
Original file line number Diff line number Diff line change
@@ -1,90 +1,90 @@
hydropandas.io package
======================

hydropandas.io.io\_arctic module
hydropandas.io.arctic module
--------------------------------

.. automodule:: hydropandas.io.io_arctic
.. automodule:: hydropandas.io.arctic
:members:
:undoc-members:
:show-inheritance:

hydropandas.io.io\_dino module
hydropandas.io.dino module
------------------------------

.. automodule:: hydropandas.io.io_dino
.. automodule:: hydropandas.io.dino
:members:
:undoc-members:
:show-inheritance:

hydropandas.io.io\_fieldlogger module
hydropandas.io.fieldlogger module
-------------------------------------

.. automodule:: hydropandas.io.io_fieldlogger
.. automodule:: hydropandas.io.fieldlogger
:members:
:undoc-members:
:show-inheritance:

hydropandas.io.io\_knmi module
hydropandas.io.knmi module
------------------------------

.. automodule:: hydropandas.io.io_knmi
.. automodule:: hydropandas.io.knmi
:members:
:undoc-members:
:show-inheritance:

hydropandas.io.io\_menyanthes module
hydropandas.io.menyanthes module
------------------------------------

.. automodule:: hydropandas.io.io_menyanthes
.. automodule:: hydropandas.io.menyanthes
:members:
:undoc-members:
:show-inheritance:

hydropandas.io.io\_modflow module
hydropandas.io.modflow module
---------------------------------

.. automodule:: hydropandas.io.io_modflow
.. automodule:: hydropandas.io.modflow
:members:
:undoc-members:
:show-inheritance:

hydropandas.io.io\_pastas module
hydropandas.io.pastas module
--------------------------------

.. automodule:: hydropandas.io.io_pastas
.. automodule:: hydropandas.io.pastas
:members:
:undoc-members:
:show-inheritance:

hydropandas.io.io\_pystore module
hydropandas.io.pystore module
---------------------------------

.. automodule:: hydropandas.io.io_pystore
.. automodule:: hydropandas.io.pystore
:members:
:undoc-members:
:show-inheritance:

hydropandas.io.io\_waterinfo module
hydropandas.io.waterinfo module
-----------------------------------

.. automodule:: hydropandas.io.io_waterinfo
.. automodule:: hydropandas.io.waterinfo
:members:
:undoc-members:
:show-inheritance:

hydropandas.io.io\_wiski module
hydropandas.io.wiski module
-------------------------------

.. automodule:: hydropandas.io.io_wiski
.. automodule:: hydropandas.io.wiski
:members:
:undoc-members:
:show-inheritance:

hydropandas.io.io\_fews module
hydropandas.io.fews module
------------------------------

.. automodule:: hydropandas.io.io_fews
.. automodule:: hydropandas.io.fews
:members:
:undoc-members:
:show-inheritance:
1,056 changes: 772 additions & 284 deletions examples/01_groundwater_observations.ipynb

Large diffs are not rendered by default.

932 changes: 447 additions & 485 deletions examples/02_knmi_observations.ipynb

Large diffs are not rendered by default.

374 changes: 212 additions & 162 deletions examples/03_hydropandas_and_pastas.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit c31a5cb

Please sign in to comment.