mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-09 19:13:03 +00:00
Generate yaml formatted to match prettier better
This commit is contained in:
@@ -120,8 +120,11 @@ class ScopeTableGenerator:
|
|||||||
JupyterHub version field and list of RBAC scopes descriptions from
|
JupyterHub version field and list of RBAC scopes descriptions from
|
||||||
`scopes.py`."""
|
`scopes.py`."""
|
||||||
filename = REST_API_YAML
|
filename = REST_API_YAML
|
||||||
yaml = YAML(typ='rt')
|
|
||||||
|
yaml = YAML(typ="rt")
|
||||||
yaml.preserve_quotes = True
|
yaml.preserve_quotes = True
|
||||||
|
yaml.indent(mapping=2, offset=2, sequence=4)
|
||||||
|
|
||||||
scope_dict = {}
|
scope_dict = {}
|
||||||
with open(filename) as f:
|
with open(filename) as f:
|
||||||
content = yaml.load(f.read())
|
content = yaml.load(f.read())
|
||||||
|
Reference in New Issue
Block a user