Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfa6d00d

Browse files
author
Joseph Damiba
committed
fixing up ci script to catch duplicate orders
1 parenta21e8d5 commitfa6d00d

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

‎check-order.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,19 @@
3030
print(order)
3131

3232
iforder[0]!=1:
33-
raiseException("Order Check Failed! First post does not have order 1!")
33+
raiseException("Order Check Failed! First postin {} display_asdoes not have order 1!".format(category))
3434

3535
defcheckConsecutive(l):
3636
returnsorted(l)==list(range(min(l),max(l)+1))
3737

3838
try:
3939
checkConsecutive(order)
4040
except:
41-
raiseException("Order Check Failed! Orders are not consecutive integers!!")
41+
raiseException("Order Check Failed! Ordersin {} display_asare not consecutive integers!!".format(category))
4242

43-
print("Order Checks Passed!")
43+
iflen(order)!=len(set(order)):
44+
raiseException("Order Check Failed! {} display_as has duplicate order frontmatter!!".format(category))
45+
46+
47+
print("Order Checks Passed for {} display_as!".format(category))
4448
order= []

‎python/ternary-contour.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jupyter:
2727
language:python
2828
layout:base
2929
name:Ternary contours
30-
order:18
30+
order:19
3131
page_type:u-guide
3232
permalink:python/ternary-contour/
3333
thumbnail:thumbnail/ternary-contour.jpg

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp