Skip to content

Commit

Permalink
fix windows tests which use EXTRA_REQUIREMENTS_INSTALL
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasmhughes authored and s0undt3ch committed Nov 17, 2022
1 parent cb519ea commit a2471fe
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/saltext/cli/project/noxfile.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import pathlib
import shutil
import sys
import tempfile

from pathlib import Path

import nox
Expand Down Expand Up @@ -78,7 +77,7 @@ def _get_pydir(session):

def _install_requirements(
session,
*passed_requirements,
*passed_requirements, # pylint: disable=unused-argument
install_coverage_requirements=True,
install_test_requirements=True,
install_source=False,
Expand Down Expand Up @@ -109,7 +108,7 @@ def _install_requirements(
)
install_command = ["--progress-bar=off"]
install_command += [req.strip() for req in EXTRA_REQUIREMENTS_INSTALL.split()]
session.install(*passed_requirements, silent=PIP_INSTALL_SILENT)
session.install(*install_command, silent=PIP_INSTALL_SILENT)

if install_source:
pkg = "."
Expand Down Expand Up @@ -404,7 +403,7 @@ def docs(session):
session.run("make", "coverage", "SPHINXOPTS=-W", external=True)
docs_coverage_file = os.path.join("_build", "html", "python.txt")
if os.path.exists(docs_coverage_file):
with open(docs_coverage_file) as rfh:
with open(docs_coverage_file) as rfh: # pylint: disable=unspecified-encoding
contents = rfh.readlines()[2:]
if contents:
session.error("\n" + "".join(contents))
Expand Down

0 comments on commit a2471fe

Please sign in to comment.