Skip to content

Commit

Permalink
Update noxfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored and Erik Webb committed Dec 3, 2018
1 parent b0eb0d5 commit 9708da2
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions trace/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,40 +23,36 @@
LOCAL_DEPS = (os.path.join("..", "api_core"), os.path.join("..", "core"))

@nox.session(python="3.7")
def blacken(session):
"""Run black.
def lint(session):
"""Run linters.
Format code to uniform standard.
Returns a failure if the linters find linting errors or sufficiently
serious code quality issues.
"""
session.install("black")
session.install("flake8", "black", *LOCAL_DEPS)
session.run(
"black",
"--check",
"google",
"tests",
"docs",
"--exclude",
".*/proto/.*|.*/gapic/.*|.*/.*_pb2.py",
)
session.run("flake8", "google", "tests")


@nox.session(python="3.7")
def lint(session):
"""Run linters.
@nox.session(python="3.6")
def blacken(session):
"""Run black.
Returns a failure if the linters find linting errors or sufficiently
serious code quality issues.
Format code to uniform standard.
"""
session.install("flake8", "black", *LOCAL_DEPS)
session.install("black")
session.run(
"black",
"--check",
"google",
"tests",
"docs",
"--exclude",
".*/proto/.*|.*/gapic/.*|.*/.*_pb2.py",
)
session.run("flake8", "google", "tests")


@nox.session(python="3.7")
Expand Down

0 comments on commit 9708da2

Please sign in to comment.