Skip to content
Open
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
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ repos:
hooks:
- id: check-poetry-sources
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v6.0.0
hooks:
- id: pretty-format-json
args:
Expand All @@ -21,7 +21,7 @@ repos:
- id: trailing-whitespace
- id: mixed-line-ending
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
rev: v3.21.2
hooks:
- id: pyupgrade
args:
Expand All @@ -31,24 +31,24 @@ repos:
hooks:
- id: python-check-blanket-noqa
- id: python-check-blanket-type-ignore
- repo: https://github.com/psf/black
rev: 23.11.0
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 26.3.1
hooks:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.1.6
rev: v0.15.10
hooks:
- id: ruff
args:
- "--fix"
- "--exit-non-zero-on-fix"
- repo: https://github.com/andrei-shabanski/poetry-plugin-sort
rev: v0.2.0
rev: v0.2.1
hooks:
- id: poetry-sort
- repo: https://github.com/python-poetry/poetry
rev: "1.7.0"
rev: "2.3.2"
hooks:
- id: poetry-check

Expand Down
2 changes: 1 addition & 1 deletion src/pyconnectwise/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from pyconnectwise.clients.automate_client import ConnectWiseAutomateAPIClient
from pyconnectwise.clients.manage_client import ConnectWiseManageAPIClient

__all__ = ["ConnectWiseManageAPIClient", "ConnectWiseAutomateAPIClient"]
__all__ = ["ConnectWiseAutomateAPIClient", "ConnectWiseManageAPIClient"]
__version__ = "0.6.1"
4 changes: 2 additions & 2 deletions src/pyconnectwise/clients/connectwise_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,15 @@ def _make_request( # noqa: C901
url,
headers=headers,
json=data,
params=cast(dict[str, Any], params or {}),
params=cast("dict[str, Any]", params or {}),
stream=stream,
)
else:
response = requests.request(
method,
url,
headers=headers,
params=cast(dict[str, Any], params or {}),
params=cast("dict[str, Any]", params or {}),
stream=stream,
)
if not response.ok:
Expand Down
Loading
Loading