Skip to content

Commit 8871a8e

Browse files
Chris Erdmannfmichonneau
authored andcommitted
Add lc to conditions, comments, text
1 parent 55c136c commit 8871a8e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

bin/workshop_check.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
URL_PATTERN = r'https?://.+'
1919

2020
# Defaults.
21-
CARPENTRIES = ("dc", "swc")
21+
CARPENTRIES = ("dc", "swc", "lc")
2222
DEFAULT_CONTACT_EMAIL = '[email protected]'
2323

2424
USAGE = 'Usage: "workshop_check.py path/to/root/directory"'
@@ -91,7 +91,7 @@ def check_layout(layout):
9191

9292
@look_for_fixme
9393
def check_carpentry(layout):
94-
'''"carpentry" in YAML header must be "dc" or "swc".'''
94+
'''"carpentry" in YAML header must be "dc", "swc", or "lc".'''
9595

9696
return layout in CARPENTRIES
9797

@@ -117,7 +117,7 @@ def check_humandate(date):
117117
and 4-digit year. Examples include 'Feb 18-20, 2025' and 'Feb 18
118118
and 20, 2025'. It may be in languages other than English, but the
119119
month name should be kept short to aid formatting of the main
120-
Software Carpentry web site.
120+
Carpentries web site.
121121
"""
122122

123123
if ',' not in date:
@@ -390,7 +390,7 @@ def check_config(reporter, filename):
390390
kind)
391391

392392
carpentry = config.get('carpentry', None)
393-
reporter.check(carpentry in ('swc', 'dc'),
393+
reporter.check(carpentry in ('swc', 'dc', 'lc'),
394394
filename,
395395
'Missing or unknown carpentry: {0}',
396396
carpentry)

0 commit comments

Comments
 (0)