Skip to content

Commit a0ee12f

Browse files
feat(api): api update (#513)
1 parent 4fc6ac8 commit a0ee12f

15 files changed

+26
-22
lines changed

pyproject.toml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ format = { chain = [
6363
"format:ruff",
6464
"format:docs",
6565
"fix:ruff",
66+
# run formatting again to fix any inconsistencies when imports are stripped
67+
"format:ruff",
6668
]}
67-
"format:black" = "black ."
6869
"format:docs" = "python scripts/utils/ruffen-docs.py README.md api.md"
6970
"format:ruff" = "ruff format"
70-
"format:isort" = "isort ."
7171

7272
"lint" = { chain = [
7373
"check:ruff",
@@ -125,10 +125,6 @@ path = "README.md"
125125
pattern = '\[(.+?)\]\(((?!https?://)\S+?)\)'
126126
replacement = '[\1](https://github.com/Finch-API/finch-api-python/tree/main/\g<2>)'
127127

128-
[tool.black]
129-
line-length = 120
130-
target-version = ["py37"]
131-
132128
[tool.pytest.ini_options]
133129
testpaths = ["tests"]
134130
addopts = "--tb=short"

requirements-dev.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ pytz==2023.3.post1
8080
# via dirty-equals
8181
respx==0.20.2
8282
rich==13.7.1
83-
ruff==0.6.5
83+
ruff==0.6.9
8484
setuptools==68.2.2
8585
# via nodeenv
8686
six==1.16.0

src/finch/_base_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1590,7 +1590,7 @@ async def _request(
15901590
except Exception as err:
15911591
log.debug("Encountered Exception", exc_info=True)
15921592

1593-
if retries_taken > 0:
1593+
if remaining_retries > 0:
15941594
return await self._retry_request(
15951595
input_options,
15961596
cast_to,

src/finch/_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def __init__(
159159
@property
160160
@override
161161
def qs(self) -> Querystring:
162-
return Querystring(array_format="comma")
162+
return Querystring(array_format="brackets")
163163

164164
@property
165165
@override
@@ -495,7 +495,7 @@ def __init__(
495495
@property
496496
@override
497497
def qs(self) -> Querystring:
498-
return Querystring(array_format="comma")
498+
return Querystring(array_format="brackets")
499499

500500
@property
501501
@override

src/finch/types/connect/session_new_response.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33

4-
54
from ..._models import BaseModel
65

76
__all__ = ["SessionNewResponse"]

src/finch/types/connect/session_reauthenticate_response.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33

4-
54
from ..._models import BaseModel
65

76
__all__ = ["SessionReauthenticateResponse"]

src/finch/types/disconnect_response.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33

4-
54
from .._models import BaseModel
65

76
__all__ = ["DisconnectResponse"]

src/finch/types/hris/benfit_contribution.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33

4-
54
from .benefit_contribution import BenefitContribution
65

76
__all__ = ["BenfitContribution"]

src/finch/types/hris/create_company_benefits_response.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33

4-
54
from ..._models import BaseModel
65

76
__all__ = ["CreateCompanyBenefitsResponse"]

src/finch/types/hris/update_company_benefit_response.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33

4-
54
from ..._models import BaseModel
65

76
__all__ = ["UpdateCompanyBenefitResponse"]

0 commit comments

Comments
 (0)