Add lc to conditions, comments, text
authorChris Erdmann <chris@carpentries.org>
Sun, 2 Dec 2018 12:35:19 +0000 (04:35 -0800)
committerFrançois Michonneau <francois.michonneau@gmail.com>
Mon, 3 Dec 2018 14:15:04 +0000 (09:15 -0500)
bin/workshop_check.py

index bd15210a93e844530b502d4867cac00f593d7897..e5e651ecef51896711d979834263974ac1a830b6 100755 (executable)
@@ -18,7 +18,7 @@ EVENTBRITE_PATTERN = r'\d{9,10}'
 URL_PATTERN = r'https?://.+'
 
 # Defaults.
-CARPENTRIES = ("dc", "swc")
+CARPENTRIES = ("dc", "swc", "lc")
 DEFAULT_CONTACT_EMAIL = 'admin@software-carpentry.org'
 
 USAGE = 'Usage: "workshop_check.py path/to/root/directory"'
@@ -91,7 +91,7 @@ def check_layout(layout):
 
 @look_for_fixme
 def check_carpentry(layout):
-    '''"carpentry" in YAML header must be "dc" or "swc".'''
+    '''"carpentry" in YAML header must be "dc", "swc", or "lc".'''
 
     return layout in CARPENTRIES
 
@@ -117,7 +117,7 @@ def check_humandate(date):
     and 4-digit year.  Examples include 'Feb 18-20, 2025' and 'Feb 18
     and 20, 2025'.  It may be in languages other than English, but the
     month name should be kept short to aid formatting of the main
-    Software Carpentry web site.
+    Carpentries web site.
     """
 
     if ',' not in date:
@@ -390,7 +390,7 @@ def check_config(reporter, filename):
                    kind)
 
     carpentry = config.get('carpentry', None)
-    reporter.check(carpentry in ('swc', 'dc'),
+    reporter.check(carpentry in ('swc', 'dc', 'lc'),
                    filename,
                    'Missing or unknown carpentry: {0}',
                    carpentry)