Skip to content

Commit

Permalink
Refactor nox requirements to use requirements files (#609)
Browse files Browse the repository at this point in the history
Closes #601
  • Loading branch information
strokirk authored Nov 8, 2022
1 parent 0031046 commit 606c71a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def tests(session):
def coverage(*args):
session.run("python", "-m", "coverage", *args)

session.install("coverage[toml]>=5.0.0", "pretend", "pytest>=6.2.0", "pip>=9.0.2")
session.install("-r", "tests/requirements.txt")
session.install(".")

if "pypy" not in session.python:
Expand Down Expand Up @@ -69,7 +69,7 @@ def lint(session):
@nox.session(python="3.9")
def docs(session):
shutil.rmtree("docs/_build", ignore_errors=True)
session.install("furo")
session.install("-r", "docs/requirements.txt")
session.install("-e", ".")

variants = [
Expand Down
4 changes: 4 additions & 0 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
coverage[toml]>=5.0.0
pip>=9.0.2
pretend
pytest>=6.2.0

0 comments on commit 606c71a

Please sign in to comment.