projects
/
rnaseq-cwl-training.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a60a74a
)
permissive checks for pre-alpha lessons
author
Zhian N. Kamvar <zkamvar@gmail.com>
Fri, 18 Dec 2020 16:16:56 +0000
(08:16 -0800)
committer
François Michonneau <francois.michonneau@gmail.com>
Fri, 18 Dec 2020 16:41:40 +0000
(17:41 +0100)
This will fix #533
bin/lesson_check.py
patch
|
blob
|
history
diff --git
a/bin/lesson_check.py
b/bin/lesson_check.py
index 1fd711827d0c6d494736dc7dd0968715d51342b0..2f7e773ea07bd550b9a97aa97bcfc2ccaf762b81 100644
(file)
--- a/
bin/lesson_check.py
+++ b/
bin/lesson_check.py
@@
-117,7
+117,10
@@
def main():
args = parse_args()
args.reporter = Reporter()
args = parse_args()
args.reporter = Reporter()
- check_config(args.reporter, args.source_dir)
+ life_cycle = check_config(args.reporter, args.source_dir)
+ # pre-alpha lessons should report without error
+ if life_cycle == "pre-alpha":
+ args.permissive = True
check_source_rmd(args.reporter, args.source_dir, args.parser)
args.references = read_references(args.reporter, args.reference_path)
check_source_rmd(args.reporter, args.source_dir, args.parser)
args.references = read_references(args.reporter, args.reference_path)
@@
-194,6
+197,7
@@
def check_config(reporter, source_dir):
reporter.check(defaults in config.get('defaults', []),
'configuration',
'"root" not set to "." in configuration')
reporter.check(defaults in config.get('defaults', []),
'configuration',
'"root" not set to "." in configuration')
+ return config['life_cycle']
def check_source_rmd(reporter, source_dir, parser):
"""Check that Rmd episode files include `source: Rmd`"""
def check_source_rmd(reporter, source_dir, parser):
"""Check that Rmd episode files include `source: Rmd`"""