Skip to content

Commit

Permalink
Deps: Adjust dependency specifications and update rope and furo
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoernricks committed Jul 27, 2023
1 parent e897e28 commit db2d5c9
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 18 deletions.
16 changes: 8 additions & 8 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions pontos/github/actions/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from typing import Generator, Optional

from pontos.github.actions.errors import GitHubActionsError
from pontos.typing import SupportsStr


def _to_options(
Expand Down Expand Up @@ -204,7 +205,7 @@ class ActionOutput:
def __init__(self, file: TextIOWrapper) -> None:
self._file = file

def write(self, name: str, value: str):
def write(self, name: str, value: SupportsStr):
"""
Set action output
Expand Down Expand Up @@ -244,7 +245,7 @@ def out() -> Generator[ActionOutput, None, None]:
yield ActionOutput(f)

@staticmethod
def output(name: str, value: str):
def output(name: str, value: SupportsStr):
"""
Set action output
Expand All @@ -265,7 +266,7 @@ def output(name: str, value: str):
f.write(f"{name}={value}\n")

@staticmethod
def input(name: str, default: Optional[str] = None) -> str:
def input(name: str, default: Optional[str] = None) -> Optional[str]:
"""
Get the value of an action input
Expand All @@ -274,5 +275,5 @@ def input(name: str, default: Optional[str] = None) -> str:
default: Use as default if the is no value for the variable
"""
return os.environ.get(
f"INPUT_{name.replace(' ', '_').upper()}", default # type: ignore
f"INPUT_{name.replace(' ', '_').upper()}", default
)
12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,22 @@ include = [
]

[tool.poetry.dependencies]
python = ">=3.9"
python = "^3.9"
colorful = ">=0.5.4"
tomlkit = ">=0.5.11"
packaging = ">=20.3"
httpx = {extras = ["http2"], version = ">=0.23,<0.25"}
httpx = {extras = ["http2"], version = ">=0.23"}
rich = ">=12.4.4"
typing-extensions = { version = "^4.4.0", python = "<3.8" }
python-dateutil = ">=2.8.2"
semver = ">=2.13"
lxml = ">=4.9.0"

[tool.poetry.dev-dependencies]
autohooks = { version = ">=22.7.0", python = "^3.9" }
autohooks-plugin-black = { version = ">=22.7.0", python = "^3.9" }
autohooks-plugin-isort = { version = ">=22.3.0", python = "^3.9" }
autohooks-plugin-ruff = { version = ">=23.6.1", python = "^3.9" }
autohooks = ">=22.7.0"
autohooks-plugin-black = ">=22.7.0"
autohooks-plugin-isort = ">=22.3.0"
autohooks-plugin-ruff = ">=23.6.1"
rope = ">=1.9.0"
coverage = ">=7.2"
myst-parser = ">=0.19.1"
Expand Down

0 comments on commit db2d5c9

Please sign in to comment.