Skip to content

Commit cb4e249

Browse files
committed
add cp as template option
1 parent 8871a8e commit cb4e249

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

bin/workshop_check.py

Lines changed: 3 additions & 3 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", "lc")
21+
CARPENTRIES = ("dc", "swc", "lc", "cp")
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", "swc", or "lc".'''
94+
'''"carpentry" in YAML header must be "dc", "swc", "lc", or "cp".'''
9595

9696
return layout in CARPENTRIES
9797

@@ -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', 'lc'),
393+
reporter.check(carpentry in ('swc', 'dc', 'lc', 'cp'),
394394
filename,
395395
'Missing or unknown carpentry: {0}',
396396
carpentry)

0 commit comments

Comments
 (0)