Skip to content

Commit

Permalink
Remove black from noxfile-template (#2593)
Browse files Browse the repository at this point in the history
  • Loading branch information
busunkim96 authored Dec 10, 2019
1 parent ef99076 commit cce0c9d
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions noxfile-template.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 + [
Expand All @@ -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")))


Expand Down

0 comments on commit cce0c9d

Please sign in to comment.