diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8eccea3..d4ba6fc 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -25,10 +25,10 @@ jobs: # } # - { name: 3.12 Mac, python: "3.12", os: macos-latest, tox: py312 } - { - name: Pre-commit, + name: Lint with pre-commit, python: "3.12", os: ubuntu-latest, - tox: pre-commit, + tox: lint, } steps: - uses: actions/checkout@v4 diff --git a/pyproject.toml b/pyproject.toml index 85cdc61..9c48881 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,6 +30,7 @@ dependencies = [ "numpy", "scikit-image", "statsmodels", + "pandas-stubs", ] [project.optional-dependencies] diff --git a/tox.ini b/tox.ini index d8cc836..0fe4a14 100644 --- a/tox.ini +++ b/tox.ini @@ -1,13 +1,14 @@ [tox] envlist = py3{12,11,10} - pre-commit + lint skip_missing_interpreters = true isolated_build = true [testenv] commands = pytest -v --tb=short --basetemp={envtmpdir} {posargs:tests} -[testenv:{pre-commit}] +[testenv:{lint}] commands = - pre-commit: pre-commit run --all-files + install_pre-commit: pip install pre-commit + run_pre-commit: pre-commit run --show-diff-on-failure --all-files