Skip to content
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
2 changes: 1 addition & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
test:
strategy:
matrix:
python: [ "3.8", "3.9", "3.10", "3.11" ]
python: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
os: [ ubuntu-latest, macos-latest, windows-latest ]
runs-on: ${{ matrix.os }}
steps:
Expand Down
151 changes: 110 additions & 41 deletions poetry.lock

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

7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,19 @@ bl = "binarylane.console.__main__:main"
taskipy = "^1.10.3"
isort = "*"
black = "*"
pylint = "^2.15.2"
mypy = "*"
types-python-dateutil = "^2.8.19"
pytest = "^7.2.0"
absolufy-imports = "^0.3.1"
binarylane-python-client = "^0.13.2a0"
safety = "*"

[tool.poetry.group.pylint.dependencies]
pylint = { version = "^3.3.4", python = ">=3.9" }

[tool.poetry.group.pylint-38.dependencies]
pylint = { version = "^2.15.2", python = "<3.9" }

[tool.taskipy.tasks]
generate = "python scripts/generate.py"
black = "black ."
Expand Down
2 changes: 1 addition & 1 deletion src/binarylane/console/parser/help_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def add_usage(
self,
usage: Optional[str],
actions: Iterable[argparse.Action],
groups: Iterable[argparse._ArgumentGroup],
groups: Iterable[argparse._MutuallyExclusiveGroup],
prefix: Optional[str] = None,
) -> None:
actions = [argparse.Action(["OPTIONS"], "")] + [
Expand Down
2 changes: 2 additions & 0 deletions src/binarylane/console/runners/httpx_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def __init__(self) -> None:
_httpx_request: Optional[Callable[..., httpx.Response]]

def __enter__(self: WrapperT) -> WrapperT:
# pylint: disable=used-before-assignment
self._httpx_request = httpx.request
httpx.request = self.request
return self
Expand All @@ -41,6 +42,7 @@ def request(self, *args: Any, **kwargs: Any) -> httpx.Response:
def __exit__(
self, exc_type: Optional[type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[TracebackType]
) -> None:
# pylint: disable=used-before-assignment
httpx.request = self._httpx_request # type: ignore


Expand Down
Loading