Skip to content

Commit 8fffe93

Browse files
committed
Added redundancy to dev dependencies installation
1 parent 3f8ebcb commit 8fffe93

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

{{cookiecutter.project_slug}}/noxfile.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,30 +54,35 @@ def install_dev(session):
5454
@nox.session(python=False, name="tests")
5555
def tests(session):
5656
"""Run default tests."""
57+
install_dev(session)
5758
session.run("poetry", "run", "pytest")
5859

5960

6061
@nox.session(python=False, name="pre-commit")
6162
def pre_commit(session):
6263
"""Run pre-commit checks."""
64+
install_dev(session)
6365
session.run("poetry", "run", "pre-commit", "run", "--all-files")
6466

6567

6668
@nox.session(python=False, name="black")
6769
def black(session):
6870
"""Fix code structure using black."""
71+
install_dev(session)
6972
session.run("poetry", "run", "black", "src", "tests", "noxfile.py")
7073

7174

7275
@nox.session(python=False, name="lint")
7376
def lint(session):
7477
"""Check styling using Flake8 and external packages."""
78+
install_dev(session)
7579
session.run("poetry", "run", "flake8")
7680

7781

7882
@nox.session(python=False, name="uml")
7983
def uml(session):
8084
"""Generate UML diagrams."""
85+
install_dev(session)
8186
p = Path(r"src").glob("*")
8287
folders = [x for x in p if x.is_dir()]
8388
for folder in folders:
@@ -111,6 +116,7 @@ def uml(session):
111116
@nox.session(python=False, name="test-docs")
112117
def test_docs(session):
113118
"""Run default tests."""
119+
install_dev(session)
114120
session.run(
115121
"poetry",
116122
"run",
@@ -125,6 +131,7 @@ def test_docs(session):
125131
@nox.session(python=False, name="api-docs")
126132
def api_docs(session):
127133
"""Generate API documentation using docstrings and pdoc3."""
134+
install_dev(session)
128135
session.run(
129136
"poetry",
130137
"run",

0 commit comments

Comments
 (0)