Skip to content

Commit

Permalink
Merge pull request #1811 from alan-turing-institute/python_version
Browse files Browse the repository at this point in the history
Correct Python version
  • Loading branch information
JimMadge authored Apr 15, 2024
2 parents 4cdbc80 + 624a3a5 commit 8e76a2f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions data_safe_haven/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@

def callback(
output: Annotated[
Optional[pathlib.Path],
Optional[pathlib.Path], # noqa: UP007
typer.Option(
"--output", "-o", resolve_path=True, help="Path to an output log file"
),
] = None,
verbosity: Annotated[
Optional[int],
Optional[int], # noqa: UP007
typer.Option(
"--verbosity",
"-v",
Expand All @@ -35,7 +35,7 @@ def callback(
),
] = None,
version: Annotated[
Optional[bool],
Optional[bool], # noqa: UP007
typer.Option(
"--version", "-V", help="Display the version of this application."
),
Expand Down
4 changes: 2 additions & 2 deletions data_safe_haven/commands/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
@config_command_group.command()
def template(
file: Annotated[
Optional[Path],
Optional[Path], # noqa: UP007
typer.Option(help="File path to write configuration template to."),
] = None
) -> None:
Expand Down Expand Up @@ -43,7 +43,7 @@ def upload(
@config_command_group.command()
def show(
file: Annotated[
Optional[Path],
Optional[Path], # noqa: UP007
typer.Option(help="File path to write configuration template to."),
] = None
) -> None:
Expand Down
8 changes: 4 additions & 4 deletions data_safe_haven/commands/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,26 +112,26 @@ def add(
@context_command_group.command()
def update(
admin_group: Annotated[
Optional[str],
Optional[str], # noqa: UP007
typer.Option(
help="The ID of an Azure group containing all administrators.",
callback=typer_validate_aad_guid,
),
] = None,
location: Annotated[
Optional[str],
Optional[str], # noqa: UP007
typer.Option(
help="The Azure location to deploy resources into.",
),
] = None,
name: Annotated[
Optional[str],
Optional[str], # noqa: UP007
typer.Option(
help="The human friendly name to give this Data Safe Haven deployment.",
),
] = None,
subscription: Annotated[
Optional[str],
Optional[str], # noqa: UP007
typer.Option(
help="The name of an Azure subscription to deploy resources into.",
),
Expand Down
4 changes: 2 additions & 2 deletions data_safe_haven/commands/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
@deploy_command_group.command()
def shm(
force: Annotated[
Optional[bool],
Optional[bool], # noqa: UP007
typer.Option(
"--force",
"-f",
Expand Down Expand Up @@ -91,7 +91,7 @@ def shm(
def sre(
name: Annotated[str, typer.Argument(help="Name of SRE to deploy")],
force: Annotated[
Optional[bool],
Optional[bool], # noqa: UP007
typer.Option(
"--force",
"-f",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description = "An open-source framework for creating secure environments to anal
authors = [
{ name = "Data Safe Haven development team", email = "[email protected]" },
]
requires-python = "==3.12"
requires-python = "==3.12.*"
license = "BSD-3-Clause"
dependencies = [
"appdirs~=1.4",
Expand Down

0 comments on commit 8e76a2f

Please sign in to comment.