Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2f19daa

Browse filesBrowse files
yoshi-automationcrwilcox
authored andcommitted
Update noxfile.
1 parent db4f3b5 commit 2f19daa
Copy full SHA for 2f19daa

File tree

Expand file treeCollapse file tree

1 file changed

+12
-16
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+12
-16
lines changed

‎container/noxfile.py

Copy file name to clipboardExpand all lines: container/noxfile.py
+12-16Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,40 +23,36 @@
2323
LOCAL_DEPS = (os.path.join("..", "api_core"), os.path.join("..", "core"))
2424

2525
@nox.session(python="3.7")
26-
def blacken(session):
27-
"""Run black.
26+
def lint(session):
27+
"""Run linters.
2828
29-
Format code to uniform standard.
29+
Returns a failure if the linters find linting errors or sufficiently
30+
serious code quality issues.
3031
"""
31-
session.install("black")
32+
session.install("flake8", "black", *LOCAL_DEPS)
3233
session.run(
3334
"black",
35+
"--check",
3436
"google",
3537
"tests",
3638
"docs",
37-
"--exclude",
38-
".*/proto/.*|.*/gapic/.*|.*/.*_pb2.py",
3939
)
40+
session.run("flake8", "google", "tests")
4041

4142

42-
@nox.session(python="3.7")
43-
def lint(session):
44-
"""Run linters.
43+
@nox.session(python="3.6")
44+
def blacken(session):
45+
"""Run black.
4546
46-
Returns a failure if the linters find linting errors or sufficiently
47-
serious code quality issues.
47+
Format code to uniform standard.
4848
"""
49-
session.install("flake8", "black", *LOCAL_DEPS)
49+
session.install("black")
5050
session.run(
5151
"black",
52-
"--check",
5352
"google",
5453
"tests",
5554
"docs",
56-
"--exclude",
57-
".*/proto/.*|.*/gapic/.*|.*/.*_pb2.py",
5855
)
59-
session.run("flake8", "google", "tests")
6056

6157

6258
@nox.session(python="3.7")

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.