Skip to content

Commit

Permalink
#163: Remove specific python version on non-specific nox sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
MRichards99 committed Jan 15, 2021
1 parent 0a50a69 commit 2792e7d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ def install_with_constraints(session, *args, **kwargs):
session.log("Error: The temporary requirements file could not be closed")


@nox.session(python="3.6", reuse_venv=True)
@nox.session(reuse_venv=True)
def black(session):
args = session.posargs or code_locations

install_with_constraints(session, "black")
session.run("black", *args, external=True)


@nox.session(python="3.6", reuse_venv=True)
@nox.session(reuse_venv=True)
def lint(session):
args = session.posargs or code_locations
install_with_constraints(
Expand All @@ -59,7 +59,7 @@ def lint(session):
session.run("flake8", *args)


@nox.session(python="3.6", reuse_venv=True)
@nox.session(reuse_venv=True)
def safety(session):
install_with_constraints(session, "safety")
with tempfile.NamedTemporaryFile(delete=False) as requirements:
Expand Down

0 comments on commit 2792e7d

Please sign in to comment.