Skip to content

Commit

Permalink
fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ron-gal committed Feb 5, 2024
1 parent 260b97d commit e1d860b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions samples/vertex-vector-search/tests/noxfile.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import nox

# All versions used to test samples.
ALL_VERSIONS = ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]

DEFAULT_PYTHON_VERSION = "3.11"
BLACK_VERSION = "black==22.3.0"
LINT_PATHS = ["system", "noxfile.py"]


@nox.session(python=DEFAULT_PYTHON_VERSION)
@nox.session(python=ALL_VERSIONS)
def tests(session: nox.sessions.Session) -> None:
# Install dependencies
session.install("-r", "requirements.txt")
Expand All @@ -14,7 +17,7 @@ def tests(session: nox.sessions.Session) -> None:
session.run("pytest", "-s", "system/workflow-test.py")


@nox.session(python=DEFAULT_PYTHON_VERSION)
@nox.session(python=ALL_VERSIONS)
def blacken(session: nox.sessions.Session) -> None:
"""Run black. Format code to uniform standard."""
session.install(BLACK_VERSION)
Expand Down Expand Up @@ -44,7 +47,7 @@ def blacken(session: nox.sessions.Session) -> None:
]


@nox.session(python=DEFAULT_PYTHON_VERSION)
@nox.session(python=ALL_VERSIONS)
def lint(session: nox.sessions.Session) -> None:
session.install("flake8", "flake8-annotations")

Expand Down

0 comments on commit e1d860b

Please sign in to comment.