We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65f7d88 commit d08366eCopy full SHA for d08366e
.github/workflows/nikola.yml
@@ -19,7 +19,7 @@ jobs:
19
uses: actions/checkout@v2
20
- name: Build docs
21
shell: bash
22
- run: |
+ run: python3 check_checksums.py
23
sudo apt install virtualenv
24
make build
25
- name: Deploy
check_checksums.py
@@ -0,0 +1,14 @@
1
+#!/usr/bin/env python3
2
+
3
+def main(fname):
4
5
+ with open(fname) as fid:
6
+ for line in fid:
7
+ if line.startswith(' '):
8
+ parts = line.strip().split(' ')
9
+ if len(parts[0]) != 3:
10
+ raise ValueError(f'bad checksum in {line}')
11
12
+if __name__ == "__main__":
13
+ main('pages/checksums.rst')
14
0 commit comments