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 cce0c9d

Browse filesBrowse files
authored
Remove black from noxfile-template (GoogleCloudPlatform#2593)
1 parent ef99076 commit cce0c9d
Copy full SHA for cce0c9d

File tree

Expand file treeCollapse file tree

1 file changed

+1
-18
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-18
lines changed

‎noxfile-template.py

Copy file name to clipboardExpand all lines: noxfile-template.py
+1-18Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -207,16 +207,9 @@ def py3(session, sample):
207207
"""Runs py.test for a sample using Python 3.x"""
208208
_session_tests(session, sample)
209209

210-
211-
BLACK_VERSION = "black==19.3b0"
212-
213-
214210
@nox.session(python="3.6")
215211
def lint(session):
216-
"""Checks if blacken would result in any changes in the sample."""
217-
session.install("flake8", "flake8-import-order", BLACK_VERSION)
218-
219-
session.run("black", "--check", ".")
212+
session.install("flake8", "flake8-import-order")
220213

221214
local_names = _determine_local_import_names(".")
222215
args = FLAKE8_COMMON_ARGS + [
@@ -226,16 +219,6 @@ def lint(session):
226219
]
227220
session.run("flake8", *args)
228221

229-
230-
@nox.session(python="3.6")
231-
def blacken(session):
232-
"""Run black.
233-
Format code to uniform standard.
234-
"""
235-
session.install(BLACK_VERSION)
236-
session.run("black", ".")
237-
238-
239222
SAMPLES_WITH_GENERATED_READMES = sorted(list(_collect_dirs(".", suffix=".rst.in")))
240223

241224

0 commit comments

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