-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
docs: remove extra characters in the command line prompt #5153
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
Conversation
I've used the GitHub web Interface to create this PR. Please squash when merging. Note that I think those characters there are redundant, but I'm not sure if the bare no special meaning. |
Codecov Report
@@ Coverage Diff @@
## master #5153 +/- ##
==========================================
+ Coverage 95.79% 96.06% +0.27%
==========================================
Files 114 114
Lines 25825 25825
Branches 2550 2550
==========================================
+ Hits 24740 24810 +70
+ Misses 757 705 -52
+ Partials 328 310 -18
Continue to review full report at Codecov.
|
Not possible (#4361). I think those examples should be auto-generated, see |
@@ -0,0 +1,2 @@ | |||
Remove extra characters in the shown command line prompts in the test discovery | |||
documentation. |
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.
btw: I do not think we need a changelog for this.
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.
me neither. creating this was pain via github.
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.
https://github.com/pytest-dev/pytest/blob/master/changelog/README.rst
trivial
: fixing a small typo or internal change that might be noteworthy.
Note sure if the "might be noteworthy" part applies to fixing typos, but I think this list should be updated to say not to create this just for a trivial typo fix.
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.
Oh excellent point, thanks for pointing that out! We should update that templates to mean that trivial is meant to actual code or dependency changes, but not to small documentation changes in general. 👍
Probably means that they are currently not updated then, and that this PR is good to do so in the future. |
@@ -206,7 +206,7 @@ You can always peek at the collection tree without running tests like this: | |||
|
|||
.. code-block:: pytest | |||
|
|||
. $ pytest --collect-only pythoncollection.py |
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.
They are there to not run regendoc, because regendoc uses the line starting as $
to mean to execute the shell command:
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.
So this PR is probably bogus. Should I open an issue to have a mechanism for this that doesn't uglify the docs?
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.
Good idea, I would kindly ask to create it in https://github.com/pytest-dev/regendoc though. 👍
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.
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.
Note that studying the code, a dot with a space should not stop regendoc:
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.
They are there to not run regendoc
Why though? Shouldn't we have working examples for those also?
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.
You are right, probably they should
Yep, missed your comment before commenting earlier. Thanks a lot for the quick and thoughtful contribution @hroncok, but I guess we can close this. 👍 |
Thanks for submitting a PR, your contribution is really appreciated!
Here's a quick checklist that should be present in PRs (you can delete this text from the final description, this is
just a guideline):
changelog
folder, with a name like<ISSUE NUMBER>.<TYPE>.rst
. See changelog/README.rst for details.master
branch for bug fixes, documentation updates and trivial changes.