We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbdd471 commit 480571bCopy full SHA for 480571b
project/.cs50.yml
@@ -0,0 +1,9 @@
1
+submit50:
2
+ files: &submit50_files
3
+ - !require README.md
4
+ style: false
5
+
6
+check50:
7
+ files: *submit50_files
8
9
project/__init__.py
@@ -0,0 +1,19 @@
+import re
+import check50
+@check50.check()
+def exists():
+ """README.md exists"""
+ check50.exists("README.md")
+@check50.check(exists)
10
+def final():
11
+ """final project details"""
12
+ text = open("README.md").read().lower()
13
+ if len(text) < 2500:
14
+ raise check50.Failure(f"Description is not long enough.")
15
16
+ urls = re.findall('https?:\/\/[\w/\-?=%.]+\.[\w/\-?=%.]+', text)
17
+ if not urls:
18
+ raise check50.Failure(f"Video URL is missing.")
19
0 commit comments