We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55947f0 commit 0274d77Copy full SHA for 0274d77
1 file changed
.hooks/pre_commit_hooks/check_conditional_mark_sort.py
@@ -14,6 +14,14 @@ def main():
14
for line in file_contents:
15
if re.match('^[a-zA-Z]', line):
16
conditions.append(line.strip().rstrip(":"))
17
+ if conditions[0] == 'test_pretest.py':
18
+ del conditions[0] # This is at front where it should be
19
+ if 'test_pretest.py' in conditions:
20
+ print("===========================================================================")
21
+ print("test_pretest.py should be the first item in ")
22
+ print("tests/common/plugins/conditional_mark/tests_mark_conditions*.yaml")
23
24
+ return 1
25
sorted_conditions = conditions[:]
26
sorted_conditions.sort()
27
for i in range(len(conditions)):
0 commit comments