-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
tables module uses runnableExamples #16994
Conversation
CI fails:
refs #16401 (comment)
/cc @saem are the stdlib imports |
This was a regression test, I think refactoring it to not use stdlib is totally safe. Just need to suss out the essence. |
I can't disable nimsuggest tests, does anyone have some ideas? |
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.
LGTM, we can re-enable nimsuggest/tests/tsug_regression.nim in followup PR after either updating the test, or preferably, after avoiding referring to stdlib in that test
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 like most of these changes, but I don't get the point in moving from the double ` to single. Is it just to be consistent?
As an aside, the markdown headings look weird with Nim's ##
comments. Maybe use the multi-line comment syntax? #[ ... ]#
?
https://nim-lang.github.io/Nim/contributing.html
(besides being simpler/shorter, people are more familiar with markdown than rst)
that's to workaround #16990; but multi-line block comment would work too (and in fact I also prefer block comment syntax; the only downside being that some tools won't tell whether something is inside a comment (eg: |
Ahh, I see you've added this: 4dfb062 :) I would say that double backticks should be used for two reasons:
If you really want to use single backticks then I'd say there should be a single PR made to change them all at once to avoid noise in PRs that just want to improve documentation. |
this doesn't apply to nim sources, for which nim uses its own custom markdown/rst/nim-esque parser. I think most people prefer the simpler form (single backtick).
I agree, we can do a PR that replaces all double backticks with single backticks (and noes nothing else) across nim repo (only touching nim, nims files). This can be done after this PR. |
In RST single backticks are reserved for "interpreted text" with a role, absence of role means a default role. See: https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#interpreted-text (In original RST there is a directive for switching this default role, In Nim currently single backticks and double backticks are the same and they mean just monospace text. I'm OK with allowing single quotes. But why change double->single deliberately? |
* tables module use runnableExamples * disable the tests
No description provided.