@@ -138,12 +138,7 @@ def is_ci():
138
138
return bool (os .getenv ("CI" ))
139
139
140
140
141
- @task
142
- def lint (c ):
143
- """Run linter"""
144
- c .run (f"{ sys .executable } -m pylint libraries" )
145
-
146
- @task
141
+ @task (aliases = ["lint" ])
147
142
def lint_tests (c , threshold = "W" ):
148
143
"""Run RobotFramework Test Linter and Formatter check
149
144
@@ -154,18 +149,20 @@ def lint_tests(c, threshold="W"):
154
149
print ("Checking formatting of RobotFramework tests..." , file = sys .stderr )
155
150
c .run (f"{ sys .executable } -m robocop check --threshold { threshold } " )
156
151
157
- @task (name = "format" )
158
- def formatcode (c ):
159
- """Format python code"""
160
- c .run (f"{ sys .executable } -m black libraries" )
152
+ print ("Checking linting of RobotFramework libraries..." , file = sys .stderr )
153
+ c .run (f"{ sys .executable } -m pylint libraries" )
161
154
162
- @task
155
+
156
+ @task (aliases = ["format" ])
163
157
def format_tests (c ):
164
- """Format RobotFramework tests
165
- """
158
+ """Format RobotFramework tests"""
166
159
print ("Formatting of RobotFramework tests..." , file = sys .stderr )
167
160
c .run (f"{ sys .executable } -m robocop format" )
168
161
162
+ print ("Formatting of RobotFramework libraries..." , file = sys .stderr )
163
+ c .run (f"{ sys .executable } -m black ." )
164
+
165
+
169
166
@task (name = "reports" )
170
167
def start_server (c , port = 9000 ):
171
168
"""Start simple webserver used to display the test reports"""
@@ -281,7 +278,13 @@ def use_local(c, arch="", package_type="deb"):
281
278
},
282
279
)
283
280
def build (
284
- c , name = "debian-systemd" , cache = True , local = True , binary = None , arch = "" , build_options = ""
281
+ c ,
282
+ name = "debian-systemd" ,
283
+ cache = True ,
284
+ local = True ,
285
+ binary = None ,
286
+ arch = "" ,
287
+ build_options = "" ,
285
288
):
286
289
"""Build the container integration test image
287
290
0 commit comments