Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,14 @@
@nox.session(name="test")
def run_test(session):
"""Run pytest."""
session.install(".")
session.install("pytest")
session.install(".[tests]")
session.run("pytest")


@nox.session(name="fast-test")
def run_test_fast(session):
"""Run pytest."""
session.install(".")
session.install("pytest")
session.install(".[tests]")
session.run("pytest", "-m", "not slow")


Expand All @@ -41,8 +39,7 @@ def lint(session):
@nox.session(name="typing")
def mypy(session):
"""Check type hints."""
session.install(".")
session.install("mypy")
session.install(".[typing]")
session.run(
"mypy",
"--install-types",
Expand Down
17 changes: 12 additions & 5 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,7 @@ classifiers =
install_requires =
PyWavelets
torch
scipy>=1.10
pooch
matplotlib
numpy
pytest
nox

python_requires = >=3.9

Expand All @@ -65,6 +60,18 @@ package_dir =
[options.packages.find]
where = src

[options.extras_require]
tests =
pytest
scipy>=1.10
# pooch is an optional scipy dependency for getting datasets
pooch
typing =
mypy
# needed otherwise pytest decorators don't get typed properly
pytest
examples =
matplotlib

##########################
# Darglint Configuration #
Expand Down