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):
147
147
session .run ("flake8" , * args )
148
148
149
149
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
+
150
163
#
151
164
# Sample Tests
152
165
#
Original file line number Diff line number Diff line change @@ -147,6 +147,19 @@ def lint(session):
147
147
session .run ("flake8" , * args )
148
148
149
149
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
+
150
163
#
151
164
# Sample Tests
152
165
#
You can’t perform that action at this time.
0 commit comments