From cce0c9d3ea63c679db488abb797d9d3e92cda0d6 Mon Sep 17 00:00:00 2001 From: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Date: Tue, 10 Dec 2019 15:46:04 -0500 Subject: [PATCH] Remove black from noxfile-template (#2593) --- noxfile-template.py | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/noxfile-template.py b/noxfile-template.py index a7635f09591b..547e9975e90b 100644 --- a/noxfile-template.py +++ b/noxfile-template.py @@ -207,16 +207,9 @@ def py3(session, sample): """Runs py.test for a sample using Python 3.x""" _session_tests(session, sample) - -BLACK_VERSION = "black==19.3b0" - - @nox.session(python="3.6") def lint(session): - """Checks if blacken would result in any changes in the sample.""" - session.install("flake8", "flake8-import-order", BLACK_VERSION) - - session.run("black", "--check", ".") + session.install("flake8", "flake8-import-order") local_names = _determine_local_import_names(".") args = FLAKE8_COMMON_ARGS + [ @@ -226,16 +219,6 @@ def lint(session): ] session.run("flake8", *args) - -@nox.session(python="3.6") -def blacken(session): - """Run black. - Format code to uniform standard. - """ - session.install(BLACK_VERSION) - session.run("black", ".") - - SAMPLES_WITH_GENERATED_READMES = sorted(list(_collect_dirs(".", suffix=".rst.in")))