Skip to content
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

Documentation adjustments #5

Merged
merged 11 commits into from
Sep 11, 2024
Merged

Documentation adjustments #5

merged 11 commits into from
Sep 11, 2024

Conversation

mrossinek
Copy link
Member

@mrossinek mrossinek commented Sep 11, 2024

This PR implements mostly documentation and CI adjustments which bring the package more in-line with other Qiskit addons.

docs/conf.py Outdated Show resolved Hide resolved
pyproject.toml Show resolved Hide resolved
pyproject.toml Show resolved Hide resolved
pyproject.toml Show resolved Hide resolved
Comment on lines +82 to +88
[tool.coverage.run]
branch = true
parallel = true

[tool.coverage.report]
fail_under = 100
show_missing = true
Copy link
Member Author

Choose a reason for hiding this comment

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

This may need to be amended. See also next comment

tox.ini Show resolved Hide resolved
pyproject.toml Show resolved Hide resolved
tox.ini Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
README.md Show resolved Hide resolved
README.md Show resolved Hide resolved
docs/release-notes.rst Show resolved Hide resolved
pyproject.toml Show resolved Hide resolved
pyproject.toml Show resolved Hide resolved
test/README.md Show resolved Hide resolved
tox.ini Outdated Show resolved Hide resolved
tox.ini Show resolved Hide resolved
README.md Outdated
[![License](https://img.shields.io/github/license/Qiskit/qiskit-addon-sqd?label=License)](LICENSE.txt)
[![Downloads](https://img.shields.io/pypi/dm/qiskit-addon-sqd.svg?label=Downloads)](https://pypi.org/project/qiskit-addon-sqd/)
[![Tests](https://github.com/Qiskit/qiskit-addon-sqd/actions/workflows/test_latest_versions.yml/badge.svg)](https://github.com/Qiskit/qiskit-addon-sqd/actions/workflows/test_latest_versions.yml)
[![Coverage](https://coveralls.io/repos/github/Qiskit/qiskit-addon-sqd/badge.svg?branch=main)](https://coveralls.io/github/Qiskit/qiskit-addon-sqd?branch=main)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Might need to hold off on this one until 0.4 when I have full set of tests + bug fixes

Copy link
Collaborator

Choose a reason for hiding this comment

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

Have removed this coverage shield for now until I get the source code tested to standards

@caleb-johnson caleb-johnson changed the title Some fixes and alignments with the qiskit-addon-utils repo Documentation adjustments Sep 11, 2024
pylint -rn qiskit_addon_sqd/ test/
nbqa pylint -rn docs/
pydocstyle qiskit_addon_sqd/
reno lint
Copy link
Collaborator

@caleb-johnson caleb-johnson Sep 11, 2024

Choose a reason for hiding this comment

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

I went ahead and removed typos from the linter. It found one typo and one false positive. I fixed those, and it is now failing in CI and giving no indication why (I can't reproduce locally)

I feel fairly strongly that typos gets in the way more than it helps (Ive had trouble getting dictionaries to be read and trouble getting CI to tell me what happened with typos). Unless you feel strongly about this, I may leave it out of the linter

Copy link
Member Author

Choose a reason for hiding this comment

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

It surprises me, that typos caused this trouble. Here are some notes:

  • typos appears to never have been declared as a dependency (smth I overlooked as well) which makes me wonder why trying to execute the command gave an exit code 2 rather than 127, but could be the reason why it kept failing at the end
  • typos does NOT use a dictionary by design. Instead, it keeps an internal list of common typos which it detects and marks. This cuts down a LOT on false positives compared to e.g. pylint's spell checker. See here for more details.

@caleb-johnson caleb-johnson added the stable backport potential Doesn't affect the API label Sep 11, 2024
@caleb-johnson caleb-johnson marked this pull request as ready for review September 11, 2024 17:52
@caleb-johnson caleb-johnson merged commit b86b32c into main Sep 11, 2024
9 checks passed
@caleb-johnson caleb-johnson deleted the align-with-utils branch September 11, 2024 18:01
mergify bot pushed a commit that referenced this pull request Sep 11, 2024
* Some fixes and alignments with the `qiskit-addon-utils` repo

* style

* Ignore slow notebooks, fix bad import

* ruff

* Add typos to externals and fix a typo

* Fix typos

* Remove typos

* Remove typos

* implement feedback

* rename dice solver how-to

* Fix references in tutorial 1

---------

Co-authored-by: Caleb Johnson <[email protected]>
(cherry picked from commit b86b32c)
caleb-johnson pushed a commit that referenced this pull request Sep 11, 2024
* Some fixes and alignments with the `qiskit-addon-utils` repo

* style

* Ignore slow notebooks, fix bad import

* ruff

* Add typos to externals and fix a typo

* Fix typos

* Remove typos

* Remove typos

* implement feedback

* rename dice solver how-to

* Fix references in tutorial 1

---------

Co-authored-by: Caleb Johnson <[email protected]>
(cherry picked from commit b86b32c)

Co-authored-by: Max Rossmannek <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stable backport potential Doesn't affect the API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants