Skip to content

Commit 606c71a

Browse files
authored
Refactor nox requirements to use requirements files (#609)
Closes #601
1 parent 0031046 commit 606c71a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def tests(session):
2828
def coverage(*args):
2929
session.run("python", "-m", "coverage", *args)
3030

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

3434
if "pypy" not in session.python:
@@ -69,7 +69,7 @@ def lint(session):
6969
@nox.session(python="3.9")
7070
def docs(session):
7171
shutil.rmtree("docs/_build", ignore_errors=True)
72-
session.install("furo")
72+
session.install("-r", "docs/requirements.txt")
7373
session.install("-e", ".")
7474

7575
variants = [

tests/requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
coverage[toml]>=5.0.0
2+
pip>=9.0.2
3+
pretend
4+
pytest>=6.2.0

0 commit comments

Comments
 (0)