type=str, default='origin', help="The name of the git remote to compare against.") parser.add_argument('-b', '--branch', type=str, default='devel', help="The name of the branch to compare against.") parser.add_argument( '--specs', type=list, default=['tests'], help="The name of the specification files to consider.") parser.add_argument('--skip', nargs='+', default=[], help="Partial directory paths to ignore.") return parser.parse_args() if __name__ == '__main__': opt = get_options() cmd = ['git', 'fetch', opt.remote] subprocess.call(cmd) count = mooseutils.sqa_check(opt.directory, opt.remote, opt.branch, opt.specs, opt.skip) sys.exit(count)
skip = [os.path.join('modules', 'richards'), os.path.join('modules', 'solid_mechanics')] import mooseutils def get_options(): """Command-line options.""" parser = argparse.ArgumentParser(description='SQA Requirement checking tool.') parser.add_argument('-d', '--directory', type=str, default=mooseutils.git_root_dir(), help="The directory to search.") parser.add_argument('-r', '--remote', type=str, default='origin', help="The name of the git remote to compare against.") parser.add_argument('-b', '--branch', type=str, default='devel', help="The name of the branch to compare against.") parser.add_argument('--specs', type=list, default=['tests'], help="The name of the specification files to consider.") parser.add_argument('--skip', nargs='+', default=[], help="Partial directory paths to ignore.") return parser.parse_args() if __name__ == '__main__': opt = get_options() cmd = ['git', 'fetch', opt.remote] subprocess.call(cmd) count = mooseutils.sqa_check(opt.directory, opt.remote, opt.branch, opt.specs, opt.skip) sys.exit(count)