File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -147,6 +147,19 @@ def lint(session):
147147 session .run ("flake8" , * args )
148148
149149
150+ #
151+ # Black
152+ #
153+
154+
155+ @nox .session
156+ def blacken (session ):
157+ session .install ("black" )
158+ python_files = [path for path in os .listdir ("." ) if path .endswith (".py" )]
159+
160+ session .run ("black" , * python_files )
161+
162+
150163#
151164# Sample Tests
152165#
Original file line number Diff line number Diff line change @@ -147,6 +147,19 @@ def lint(session):
147147 session .run ("flake8" , * args )
148148
149149
150+ #
151+ # Black
152+ #
153+
154+
155+ @nox .session
156+ def blacken (session ):
157+ session .install ("black" )
158+ python_files = [path for path in os .listdir ("." ) if path .endswith (".py" )]
159+
160+ session .run ("black" , * python_files )
161+
162+
150163#
151164# Sample Tests
152165#
You can’t perform that action at this time.
0 commit comments