Skip to content

Commit

Permalink
Import sys package
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaraBuettner committed Aug 13, 2024
1 parent 6a65fe8 commit b34da9e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from pprint import pformat

import nox
import sys

cleaned = [
"etrago/cluster/disaggregation.py",
Expand Down Expand Up @@ -69,7 +70,8 @@ def build(session):
# Skip the session if it doesn't match the current CI Python version
if session.python and session.python != current_version:
session.skip(
f"Skipping tests for Python {session.python} since the current Python version is {current_version}."
f"""Skipping tests for Python {session.python} since the
current Python version is {current_version}."""
)
setdefaults(session)
session.install("twine")
Expand All @@ -84,7 +86,8 @@ def install(session):
# Skip the session if it doesn't match the current CI Python version
if session.python and session.python != current_version:
session.skip(
f"Skipping tests for Python {session.python} since the current Python version is {current_version}."
f"""Skipping tests for Python {session.python} since the
current Python version is {current_version}."""
)
setdefaults(session)
session.env["SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL"] = "False"
Expand Down

0 comments on commit b34da9e

Please sign in to comment.