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 .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.2.0"
".": "0.3.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 1
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/benchify%2Fbenchify-bc04cfa7474038d34bb40a706e3c5f05f3a57fbc2668912f9b7885050c82f5c9.yml
openapi_spec_hash: c87647579ee434390bb0aba78cfb7bc1
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/benchify%2Fbenchify-882428dc42061ac58fad8814f920a7afec0a8fb54bb744e8e709b27156b8afb3.yml
openapi_spec_hash: 4778a24a07fa3aafa7a9befb36579c19
config_hash: 935baad1727a1116efdc14e9ce6e4405
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.3.0 (2025-08-18)

Full Changelog: [v0.2.0...v0.3.0](https://github.com/Benchify/benchify-sdk-python/compare/v0.2.0...v0.3.0)

### Features

* **api:** api update ([61c8d1b](https://github.com/Benchify/benchify-sdk-python/commit/61c8d1b4f0d79570c17ff2d70362d6f1d4dba623))

## 0.2.0 (2025-08-18)

Full Changelog: [v0.1.3...v0.2.0](https://github.com/Benchify/benchify-sdk-python/compare/v0.1.3...v0.2.0)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "benchify"
version = "0.2.0"
version = "0.3.0"
description = "The official Python library for the benchify API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/benchify/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "benchify"
__version__ = "0.2.0" # x-release-please-version
__version__ = "0.3.0" # x-release-please-version
20 changes: 10 additions & 10 deletions src/benchify/resources/fixer.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,8 @@ def run(
self,
*,
files: Iterable[fixer_run_params.File],
fix_types: List[
Literal[
"import_export", "string_literals", "ts_suggestions", "css", "tailwind", "react", "ai_fallback", "types"
]
]
bundle: bool | NotGiven = NOT_GIVEN,
fix_types: List[Literal["import_export", "string_literals", "css", "tailwind", "ai_fallback", "types"]]
| NotGiven = NOT_GIVEN,
fixes: Optional[fixer_run_params.Fixes] | NotGiven = NOT_GIVEN,
meta: Optional[fixer_run_params.Meta] | NotGiven = NOT_GIVEN,
Expand All @@ -71,6 +68,8 @@ def run(
Args:
files: List of files to process

bundle: Whether to bundle the project (experimental)

fix_types: Configuration for which fix types to apply

fixes: DEPRECATED: legacy boolean flags for which fixes to apply.
Expand All @@ -94,6 +93,7 @@ def run(
body=maybe_transform(
{
"files": files,
"bundle": bundle,
"fix_types": fix_types,
"fixes": fixes,
"meta": meta,
Expand Down Expand Up @@ -133,11 +133,8 @@ async def run(
self,
*,
files: Iterable[fixer_run_params.File],
fix_types: List[
Literal[
"import_export", "string_literals", "ts_suggestions", "css", "tailwind", "react", "ai_fallback", "types"
]
]
bundle: bool | NotGiven = NOT_GIVEN,
fix_types: List[Literal["import_export", "string_literals", "css", "tailwind", "ai_fallback", "types"]]
| NotGiven = NOT_GIVEN,
fixes: Optional[fixer_run_params.Fixes] | NotGiven = NOT_GIVEN,
meta: Optional[fixer_run_params.Meta] | NotGiven = NOT_GIVEN,
Expand All @@ -156,6 +153,8 @@ async def run(
Args:
files: List of files to process

bundle: Whether to bundle the project (experimental)

fix_types: Configuration for which fix types to apply

fixes: DEPRECATED: legacy boolean flags for which fixes to apply.
Expand All @@ -179,6 +178,7 @@ async def run(
body=await async_maybe_transform(
{
"files": files,
"bundle": bundle,
"fix_types": fix_types,
"fixes": fixes,
"meta": meta,
Expand Down
9 changes: 4 additions & 5 deletions src/benchify/types/fixer_run_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@ class FixerRunParams(TypedDict, total=False):
files: Required[Iterable[File]]
"""List of files to process"""

fix_types: List[
Literal[
"import_export", "string_literals", "ts_suggestions", "css", "tailwind", "react", "ai_fallback", "types"
]
]
bundle: bool
"""Whether to bundle the project (experimental)"""

fix_types: List[Literal["import_export", "string_literals", "css", "tailwind", "ai_fallback", "types"]]
"""Configuration for which fix types to apply"""

fixes: Optional[Fixes]
Expand Down
7 changes: 2 additions & 5 deletions src/benchify/types/fixer_run_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,11 @@ class DataSuggestedChangesAllFilesFormat(BaseModel):


class Data(BaseModel):
files_processed: int
"""Number of files processed"""

status: DataStatus
"""Final per-file status after fixing"""

fixed_files: Optional[Dict[str, object]] = None
"""Information about fixed files"""
bundled_files: Optional[List[FileChange]] = None
"""Bundled files"""

suggested_changes: Optional[DataSuggestedChanges] = None
"""Changes made by the fixer in the requested format"""
Expand Down
2 changes: 2 additions & 0 deletions tests/api_resources/test_fixer.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def test_method_run_with_all_params(self, client: Benchify) -> None:
"path": "x",
}
],
bundle=True,
fix_types=["import_export"],
fixes={
"css": True,
Expand Down Expand Up @@ -120,6 +121,7 @@ async def test_method_run_with_all_params(self, async_client: AsyncBenchify) ->
"path": "x",
}
],
bundle=True,
fix_types=["import_export"],
fixes={
"css": True,
Expand Down