Skip to content
Snippets Groups Projects
Verified Commit d93a7d00 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

DOC: Formatting and documentation fixup.

parent d667370e
No related branches found
No related tags found
2 merge requests!57RELEASE 0.7.3,!54FIX: JSON schema now is more permissive, and fixed if-conditions.
Pipeline #21103 passed
......@@ -90,15 +90,22 @@ def validate_yaml_schema(valobj):
optional_jsonschema_validate(instance=valobj, schema=schema["schema-pycaosdb-ini"])
else:
warnings.warn("""
Warning: The validation could not be performed because `jsonschema` is not installed.
""")
Warning: The validation could not be performed because `jsonschema` is not installed.
""")
def _read_config_files():
"""Function to read config files from different paths. Checks for path in $PYCAOSDBINI or home directory (.pycaosdb.ini) and in the current working directory (pycaosdb.ini).
"""Function to read config files from different paths.
Checks for path either in ``$PYCAOSDBINI`` or home directory (``.pycaosdb.ini``), and
additionally in the current working directory (``pycaosdb.ini``).
Returns
-------
ini files: list
The successfully parsed ini-files. Order: env_var or home directory, cwd. Used for testing the function.
Returns:
[list]: list with successfully parsed ini-files. Order: env_var or home directory, cwd. Used for testing the function.
"""
return_var = []
if "PYCAOSDBINI" in environ:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment