Updating lesson checker to include Library Carpentry values
authorGreg Wilson <gvwilson@third-bit.com>
Sat, 8 Oct 2016 19:38:11 +0000 (15:38 -0400)
committerGreg Wilson <gvwilson@third-bit.com>
Sat, 8 Oct 2016 19:38:11 +0000 (15:38 -0400)
bin/lesson_check.py

index 311687e92ac851ba3c5c5af2720ce45d03490902..a594f2f47c9a3fc0e27fe7452e399aefb9b2595f 100755 (executable)
@@ -151,9 +151,9 @@ def check_config(reporter, source_dir):
     config_file = os.path.join(source_dir, '_config.yml')
     config = load_yaml(config_file)
     reporter.check_field(config_file, 'configuration', config, 'kind', 'lesson')
-    reporter.check_field(config_file, 'configuration', config, 'carpentry', ('swc', 'dc'))
+    reporter.check_field(config_file, 'configuration', config, 'carpentry', ('swc', 'dc', 'lc'))
     reporter.check_field(config_file, 'configuration', config, 'title')
-    reporter.check_field(config_file, 'configuration', config, 'email')
+    reporter.check_field(config_file, 'configuration', config, 'contact')
 
     reporter.check({'values': {'root': '..'}} in config.get('defaults', []),
                    'configuration',