-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conf tree #22
Conf tree #22
Conversation
Tests failing due to dependency on cylc/cylc-flow#3559 |
|
||
.. rst-example:: | ||
|
||
.. auto-cylc-conf:: my-conf2.rc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't auto-document from JSON any more.
types = {} | ||
for obj in objects: | ||
types.update(obj) | ||
for name, info in sorted(types.items()): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for name, info in sorted(types.items()): | |
for _, info in sorted(types.items()): |
My pylint is complaining about unused varible name - pycodestyle seems happy though! Happy to ignore.
@@ -195,59 +211,84 @@ def tokens_from_partials(partials): | |||
|
|||
|
|||
def tokens_relative(base, override): | |||
""" | |||
"""Return one pat h relative to the other. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo
"""Return one pat h relative to the other. | |
"""Return one path relative to the other. |
ret = {**base} | ||
# ensure that base is an aboslute path | ||
if not base.get('conf'): | ||
return ValueError(f'{base} is not an absoute path') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return ValueError(f'{base} is not an absoute path') | |
return ValueError(f'{base} is not an absolute path') |
""" | ||
flag = False | ||
ret = {**base} | ||
# ensure that base is an aboslute path |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# ensure that base is an aboslute path | |
# ensure that base is an absolute path |
# The following is a minimal domain for documenting parsec objects: | ||
|
||
def parsec_ref(tokens): | ||
"""The detokenise equivalent for parsec (much simpler).i |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"""The detokenise equivalent for parsec (much simpler).i | |
"""The detokenise equivalent for parsec (much simpler). |
Think this 'i' can go, unless I'm mistaken?
try: | ||
docname = self.get(tokens) | ||
except KeyError: | ||
# object does not exist, "nitpicky" mode will pick this up |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"nitpicky" mode - like that :)
|
||
|
||
def test_doc_section(simple_section): | ||
"""It should docuement configuration sections.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"""It should docuement configuration sections.""" | |
"""It should document configuration sections.""" |
So, I have started my review. Only a few typos from what I have read through so far. I still have to look at the sibling prs and double check some of the logic for my own sanity. Pytests are passing for me locally. I still have to look at the integration. Looks great so far! |
* simplifies tokenisation which simplifies referencing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still need to test by building but I’ve read through code, only a few little things I’ve noticed so far.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have built it, changes look great. Suggested changes to minor typos.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested with the cylc-doc PR.
Sibling PRs:
Highlights:
ConfigNode
tree thing.Examples:
Documentation:
All [auto-]documented in the
cylc_lang
extension, try building the docs 😀.