Skip to content

Commit cce0c9d

Browse files
authored
Remove black from noxfile-template (#2593)
1 parent ef99076 commit cce0c9d

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

noxfile-template.py

Lines 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)