Skip to content

release: 0.4.0 #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
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
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
run: ./scripts/lint

build:
if: github.repository == 'stainless-sdks/benchify-python' && (github.event_name == 'push' || github.event.pull_request.head.repo.fork)
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
timeout-minutes: 10
name: build
permissions:
Expand All @@ -61,12 +61,14 @@ jobs:
run: rye build

- name: Get GitHub OIDC Token
if: github.repository == 'stainless-sdks/benchify-python'
id: github-oidc
uses: actions/github-script@v6
with:
script: core.setOutput('github_token', await core.getIDToken());

- name: Upload tarball
if: github.repository == 'stainless-sdks/benchify-python'
env:
URL: https://pkg.stainless.com/s
AUTH: ${{ steps.github-oidc.outputs.github_token }}
Expand Down
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.3.0"
".": "0.4.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-882428dc42061ac58fad8814f920a7afec0a8fb54bb744e8e709b27156b8afb3.yml
openapi_spec_hash: 4778a24a07fa3aafa7a9befb36579c19
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/benchify%2Fbenchify-c230769c9c0c47e41de0082da503cdbf75dcf65541f58c71a1f4a8fea5711bf2.yml
openapi_spec_hash: b0ecfef4246ff87d4fa693fbc2ef5af3
config_hash: 935baad1727a1116efdc14e9ce6e4405
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Changelog

## 0.4.0 (2025-08-25)

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

### Features

* **api:** api update ([f87668b](https://github.com/Benchify/benchify-sdk-python/commit/f87668b95b3994606ff161fec99b6db3e784dd78))
* **api:** api update ([54363e0](https://github.com/Benchify/benchify-sdk-python/commit/54363e025d3bc72b709c6396ae0106ebc8ac10e3))
* **api:** api update ([64bb2c7](https://github.com/Benchify/benchify-sdk-python/commit/64bb2c7146518ea47ac317ca9f8057ff9856b83d))


### Chores

* update github action ([4b44888](https://github.com/Benchify/benchify-sdk-python/commit/4b44888aed8836ba34f24dade4456e9769334b52))

## 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)
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.3.0"
version = "0.4.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.3.0" # x-release-please-version
__version__ = "0.4.0" # x-release-please-version
4 changes: 2 additions & 2 deletions src/benchify/resources/fixer.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def run(
*,
files: Iterable[fixer_run_params.File],
bundle: bool | NotGiven = NOT_GIVEN,
fix_types: List[Literal["import_export", "string_literals", "css", "tailwind", "ai_fallback", "types"]]
fix_types: List[Literal["import_export", "string_literals", "css", "tailwind", "ai_fallback", "types", "sql"]]
| NotGiven = NOT_GIVEN,
fixes: Optional[fixer_run_params.Fixes] | NotGiven = NOT_GIVEN,
meta: Optional[fixer_run_params.Meta] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -134,7 +134,7 @@ async def run(
*,
files: Iterable[fixer_run_params.File],
bundle: bool | NotGiven = NOT_GIVEN,
fix_types: List[Literal["import_export", "string_literals", "css", "tailwind", "ai_fallback", "types"]]
fix_types: List[Literal["import_export", "string_literals", "css", "tailwind", "ai_fallback", "types", "sql"]]
| NotGiven = NOT_GIVEN,
fixes: Optional[fixer_run_params.Fixes] | NotGiven = NOT_GIVEN,
meta: Optional[fixer_run_params.Meta] | NotGiven = NOT_GIVEN,
Expand Down
2 changes: 1 addition & 1 deletion src/benchify/types/fixer_run_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class FixerRunParams(TypedDict, total=False):
bundle: bool
"""Whether to bundle the project (experimental)"""

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

fixes: Optional[Fixes]
Expand Down
19 changes: 19 additions & 0 deletions src/benchify/types/fixer_run_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,20 @@


class DataStatus(BaseModel):
composite_status: Literal[
"FIXED_EVERYTHING", "FIXED_REQUESTED", "PARTIALLY_FIXED", "NO_REQUESTED_ISSUES", "NO_ISSUES", "FAILED"
]

file_to_composite_status: Optional[
Dict[
str,
Literal[
"FIXED_EVERYTHING", "FIXED_REQUESTED", "PARTIALLY_FIXED", "NO_REQUESTED_ISSUES", "NO_ISSUES", "FAILED"
],
]
] = None
"""Status of each file."""

file_to_status: Optional[Dict[str, Literal["FIXED", "PARTIALLY_FIXED", "FAILED", "NO_ISSUES_FOUND"]]] = None
"""Fix status of each file sent."""

Expand Down Expand Up @@ -51,6 +65,11 @@ class Data(BaseModel):
bundled_files: Optional[List[FileChange]] = None
"""Bundled files"""

fix_types_used: Optional[
List[Literal["import_export", "string_literals", "css", "tailwind", "ai_fallback", "types", "sql"]]
] = None
"""List of fix types that were actually applied during the fixer run"""

suggested_changes: Optional[DataSuggestedChanges] = None
"""Changes made by the fixer in the requested format"""

Expand Down