def get_config():
p = Path('<STR_LIT>')<EOL>if not p.exists():<EOL><INDENT>return {}<EOL><DEDENT>with p.open() as f:<EOL><INDENT>travis_config = yaml.safe_load(f.read())<EOL><DEDENT>config = travis_config.get('<STR_LIT>', {})<EOL>if not isinstance(config, dict):<EOL><INDENT>raise ValueError('<STR_LIT>'.format(config))<EOL><DEDENT>return config<EOL>
This load some configuration from the ``.travis.yml``, if file is present,
``doctr`` key if present.