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

Update locked dependencies. #179

Merged
merged 1 commit into from
Jun 28, 2024
Merged
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
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ repos:
- id: no-commit-to-branch
args: [--branch, master]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.4.9"
rev: "v0.5.0"
hooks:
- id: ruff
args: [ --fix ]
Expand All @@ -24,7 +24,7 @@ repos:
hooks:
- id: pyproject-fmt
- repo: https://github.com/crate-ci/typos
rev: "v1.22.7"
rev: "v1.22.9"
hooks:
- id: typos
- repo: https://github.com/econchick/interrogate
Expand Down
382 changes: 167 additions & 215 deletions poetry.lock

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ tabulate = ">=0.9.0"
tqdm = ">=4"
typing-extensions = ">=4.0.0"

# Pin numpy revision (transitive dependency)
# See qiskit-aqt-provider#179
numpy = "^1"

[tool.poetry.group.dev.dependencies]
autodoc-pydantic = "^2.0.1"
coverage = "^7.2.1"
Expand All @@ -94,7 +98,7 @@ qiskit = { version = "^1", extras = [
"visualization",
] }
rich = "^13.5.3"
ruff = "^0.4.9"
ruff = "^0.5.0"
sphinx = ">=7,<7.3"
sphinx-toolbox = "^3.5.0"
tomlkit = "^0.12.1"
Expand Down
8 changes: 4 additions & 4 deletions scripts/api_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
def repo_root() -> Path:
"""Absolute path to the repository root."""
return Path(
subprocess.run(
shlex.split("git rev-parse --show-toplevel"), # noqa: S603
subprocess.run( # noqa: S603
shlex.split("git rev-parse --show-toplevel"),
capture_output=True,
check=True,
)
Expand Down Expand Up @@ -77,8 +77,8 @@ def run_command(cmd: str) -> str:
typer.Exit: the command failed. The exit status code is 1.
"""
try:
proc = subprocess.run(
shlex.split(cmd), # noqa: S603
proc = subprocess.run( # noqa: S603
shlex.split(cmd),
check=True,
capture_output=True,
)
Expand Down
4 changes: 2 additions & 2 deletions scripts/extract-changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ def render_list_item(self, token: block_token.ListItem) -> str:
def default_changelog_path() -> Path:
"""Path to the 'CHANGELOG.md' file at the repository root."""
repo_root = Path(
subprocess.run(
shlex.split("git rev-parse --show-toplevel"), # noqa: S603
subprocess.run( # noqa: S603
shlex.split("git rev-parse --show-toplevel"),
capture_output=True,
check=True,
)
Expand Down
4 changes: 2 additions & 2 deletions scripts/read-target-coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
def default_pyproject_path() -> Path:
"""Path to the 'pyproject.toml' file at the repository root."""
repo_root = Path(
subprocess.run(
shlex.split("git rev-parse --show-toplevel"), # noqa: S603
subprocess.run( # noqa: S603
shlex.split("git rev-parse --show-toplevel"),
capture_output=True,
check=True,
)
Expand Down
6 changes: 3 additions & 3 deletions test/test_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ def test_options_types_and_constraints_cloud_resource(
assert offline_simulator_no_noise.options.max_shots() == 2000

# Check that the default options in Qiskit format match the Pydantic model.
assert {
assert offline_simulator_no_noise.options.model_dump() == {
**offline_simulator_no_noise.__class__._default_options()
} == offline_simulator_no_noise.options.model_dump()
}


def test_options_types_and_constraints_direct_access_resource() -> None:
Expand All @@ -118,7 +118,7 @@ def test_options_types_and_constraints_direct_access_resource() -> None:
assert backend.options.max_shots() == 200

# Check that the default options in Qiskit format match the Pydantic model.
assert {**backend.__class__._default_options()} == backend.options.model_dump()
assert backend.options.model_dump() == {**backend.__class__._default_options()}


def test_query_timeout_propagation() -> None:
Expand Down