This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// TODO tree | |
// If true, any subfolders containing a .git file will be ignored when searching. | |
"todo-tree.filtering.ignoreGitSubmodules": true, | |
// Add VSCode's `files.exclude` and/or `search.exclude` list to the ignored paths. | |
// - none: Don't used any built in excludes | |
// - file excludes: Use the Files:Exclude setting | |
// - search excludes: Use the Search:Exclude setting | |
// - file and search excludes: Use the Files:Exclude and the Search:Exclude setting | |
"todo-tree.filtering.useBuiltInExcludes": "file and search excludes", | |
// Set to true to enable automatic updates when files in the workspace are created, changed or deleted. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import yaml | |
with open("test.yml", "r") as stream: | |
try: | |
y_structure = yaml.safe_load(stream) | |
# will be dict of dict / list etc. | |
print(type(y_structure)) | |
print(yaml.dump(y_structure, default_flow_style=False)) | |
except yaml.YAMLError as exc: | |
print(exc) |