Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ fail_under = 70
show_missing = true

[tool.hatch.build.targets.wheel]
only-include = [
"qiskit_addon_utils",
packages = [
"src/qiskit_addon_utils",

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

As part of this PR, we should also re-evaluate whether the following lines are necessary. If they are, the path should be updated.

# The following line is required for autodoc to be able to find and import the code whose API should
# be documented.
sys.path.insert(0, os.path.abspath(".."))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

FWIW I tried to locally remove them in my qiskit-fermions clone and the docs still generate just fine! So your hunch with this no longer being required seems correct 👍

]

[tool.hatch.metadata]
Expand Down Expand Up @@ -129,11 +129,11 @@ enable = [
]

[tool.pytest.ini_options]
testpaths = ["./qiskit_addon_utils/", "./test/"]
testpaths = ["./src/", "./test/"]

[tool.ruff]
line-length = 100
src = ["qiskit_addon_utils", "test"]
src = ["src/qiskit_addon_utils", "test"]
target-version = "py39"

[tool.ruff.lint]
Expand Down
File renamed without changes.
18 changes: 9 additions & 9 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ commands =
extras =
style
commands =
ruff format qiskit_addon_utils/ docs/ test/
ruff check --fix qiskit_addon_utils/ docs/ test/
ruff format src/ docs/ test/
ruff check --fix src/ docs/ test/
nbqa ruff --fix docs/

[testenv:lint]
Expand All @@ -28,13 +28,13 @@ basepython = python3.10
extras =
lint
commands =
ruff format --check qiskit_addon_utils/ docs/ test/
ruff check qiskit_addon_utils/ docs/ test/
ruff check --preview --select CPY001 --exclude "*.ipynb" qiskit_addon_utils/ test/
ruff format --check src/ docs/ test/
ruff check src/ docs/ test/
ruff check --preview --select CPY001 --exclude "*.ipynb" src/ test/
nbqa ruff docs/
mypy qiskit_addon_utils/
pylint -rn qiskit_addon_utils/ test/
sphinx-alt-text-validator -f qiskit_addon_utils
mypy src/
pylint -rn src/ test/
sphinx-alt-text-validator -f src
nbqa pylint -rn docs/
reno lint

Expand All @@ -60,7 +60,7 @@ extras =
test
doctest
commands =
pytest --doctest-modules --cov=qiskit_addon_utils/
pytest --doctest-modules --cov=src/

[testenv:docs]
basepython = python3.10
Expand Down
Loading