@@ -54,30 +54,35 @@ def install_dev(session):
5454@nox .session (python = False , name = "tests" )
5555def 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" )
6162def 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" )
6769def 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" )
7376def 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" )
7983def 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" )
112117def 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" )
126132def 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