Skip to content

Documentation feedback#191

Open
Thom747 wants to merge 12 commits intoQuTech-Delft:mainfrom
Thom747:documentation-feedback
Open

Documentation feedback#191
Thom747 wants to merge 12 commits intoQuTech-Delft:mainfrom
Thom747:documentation-feedback

Conversation

@Thom747
Copy link
Copy Markdown
Collaborator

@Thom747 Thom747 commented Apr 2, 2026

This PR contains the requested feedback on all non-generated documentation in the repo.

There are two kinds of changes in this PR:

  • Direct changes to fix typos or hard to read sentences.
  • Comments on topics that warrant discussion or a broader rewrite.

Thus, this PR should not be merged without removal of the comments, as should not be merged into main.

@Thom747 Thom747 requested a review from heevasti April 2, 2026 13:04
@Thom747 Thom747 self-assigned this Apr 2, 2026
Copy link
Copy Markdown
Collaborator

@heevasti heevasti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the edits and comments. Here back to you with review comments. Feel free to resolve or change at your discretion.

The ``▻`` symbol denotes a reference to a named section of PEP-8.
Note that we only cite those sections where we deviate.

.. It might be worth it to use the headers to link to the relevant sections of PEP-8.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that does help to compare with the PEP-8 rules.


.. It might be worth it to use the headers to link to the relevant sections of PEP-8.

.. Also, it seems that the arrow symbol is just used in every section here, even if it does not reference PEP-8. Examples of this are the logger naming conventions and asserts.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the points where the arrow symbol do not reference to PEP-8 should get replaced with something else or removed.

▻ Comments: Inline Comments
^^^^^^^^^^^^^^^^^^^^^^^^^^^

.. This does not deviate from PEP-8, so I don't think it should be here.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then this can be removed.

* Define the QMI version and check the Python version running QMI.
* Setup logging if the ``QMI_DEBUG`` environment variable is set (as True). Otherwise start at ``qmi.start()``.

.. A previous page said that any value for QMI_DEBUG would do, so I am now not sure which is correct.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this one '(as True)' is wrong, actually. If QMI_DEBUG is set, any value that does not evaluate as None will make the debugger logging enabled. So basically anything except null or "" (empty value) should activate it. Maybe some other very special character/case as well?

Best to remove here the '(as True)' part, and change in design.rst it to 'By setting environment variable QMI_DEBUG, at ...'. What do you think?

But please avoid using the ``__all__ = [<Classes>]`` statement
to avoid enabling the ``from xxx import *`` import statements.

.. "from xxx import *" is not disabled if `__all__` is not set: it will simply import everything in the module.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, you're right. If you set __all__ = [] THEN the from xxx import * does not import anything. If xxx here is a package. Maybe this should be used to restrict import namespaces for this private vs public modules?

Well, now they can use the asterisk import as __all__ is not there, so this is our default behaviour. Maybe we can change it later but for now let's just fix the text that says otherwise.


### Installing for generating documentation

[//]: # (As we do not list any other optional installations, I wonder why we have decided to list this specifically?)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, if someone wants to build the docs locally... It is OK to have?


To build the 'readthedocs' documentation locally do:

[//]: # (This also does not work: documentation/sphinx/make-docs does not exist. I think this should say something about scripts/run_docs_sphinx.sh.)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes you're right. This is still how it is done with the Gitlab version of QMI. Looks like it didn't get updated for the Github. Please do update as you propose.


## Steps

[//]: # (Should this mention that you need to have bump2version installed through the [dev] dependencies?)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's an option, but no need to mention it I think.

Unit tests
----------

[//]: # (Should this mention Python 3.14?)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, since the latest release we support also 3.14. I forgot to edit that here.

tests).
- Unit-tests are performed and the coverage is calculated.

[//]: # (Should this also run/mention Python 3.14?)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, please add.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants