Skip to content

Commit 40342ae

Browse files
committed
Fixed bad generator typing
1 parent 2cf1e84 commit 40342ae

File tree

4 files changed

+55
-2
lines changed

4 files changed

+55
-2
lines changed

.pre-commit-config.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
exclude: '^tests|^docs|^examples|^notebooks'
2+
ci:
3+
autofix_prs: false
4+
autoupdate_branch: ''
5+
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
6+
autoupdate_schedule: weekly
7+
skip: []
8+
submodules: false
9+
repos:
10+
- repo: https://github.com/pre-commit/pre-commit-hooks
11+
rev: v5.0.0
12+
hooks:
13+
- id: check-toml
14+
- id: check-yaml
15+
- id: pretty-format-json
16+
args: [--autofix]
17+
- id: trailing-whitespace
18+
language: python
19+
- id: check-merge-conflict
20+
- id: end-of-file-fixer
21+
- id: mixed-line-ending
22+
- id: no-commit-to-branch
23+
args: [--branch, main, --branch, dev]
24+
- id: check-added-large-files
25+
- repo: https://github.com/astral-sh/ruff-pre-commit
26+
rev: v0.11.2
27+
hooks:
28+
- id: ruff
29+
args: [ --fix, --exit-non-zero-on-fix, "--ignore=C901" ]
30+
- id: ruff-format
31+
- repo: https://github.com/conorfalvey/check_pdb_hook
32+
rev: 0.0.9
33+
hooks:
34+
- id: check_pdb_hook
35+
pass_filenames: false
36+
37+
- repo: https://github.com/PyCQA/bandit.git
38+
rev: 1.8.3
39+
hooks:
40+
- id: bandit
41+
args: [-lll, --recursive, clumper]

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# [v1.0.1](https://github.com/simvue-io/simvue-cli/releases/tag/v1.0.1) - 2025-03-31
2+
* Fixed typing bug for Generator.
3+
4+
# [v1.0.0](https://github.com/simvue-io/simvue-cli/releases/tag/v1.0.0) - 2025-03-31
5+
* Added list commands for viewing objects including runs, folders, tags etc.
6+
* Added user and tenant creation.
7+
* Added virtual environment initialisation from runs.
8+
* Added JSON dumping of objects.
9+
* Added command for checking server availability.
10+
* Added ability to attach metrics to an existing run.
11+
* Added creation of new runs from CLI.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "simvue-cli"
3-
version = "1.0.0"
3+
version = "1.0.1"
44
description = "Command Line Interface for interaction with a Simvue v3 server"
55
authors = [
66
{name = "Simvue Development Team", email = "[email protected]"}

src/simvue_cli/cli/display.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
from simvue.factory.proxy import typing
1111
from simvue.api.objects.base import SimvueObject
12+
1213
import tabulate
1314
import click
1415
import pydantic
@@ -141,7 +142,7 @@ def format_tags(
141142

142143
def create_objects_display(
143144
columns: list[str],
144-
objects: typing.Generator[tuple[str, SimvueObject]],
145+
objects: typing.Generator[tuple[str, SimvueObject], None, None],
145146
plain_text: bool,
146147
enumerate_: bool,
147148
format: str | None,

0 commit comments

Comments
 (0)