Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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