Skip to content

Commit

Permalink
Update codespell version used by pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
desertaxle committed Feb 3, 2025
1 parent 9fba366 commit 0726e4d
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ repos:
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
- id: ruff-format
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
rev: v2.4.1
hooks:
- id: codespell
exclude: package-lock.json|_vendor/.*|docs/styles/.*
Expand Down
2 changes: 1 addition & 1 deletion docs/v3/get-started/whats-new-prefect-3.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ Prefect 3.0 doesn't just bring new features; it also delivers significant perfor

## Release notes

See release notes for each released version in the [Gitub repository](https://github.com/PrefectHQ/prefect/releases).
See release notes for each released version in the [GitHub repository](https://github.com/PrefectHQ/prefect/releases).
Original file line number Diff line number Diff line change
Expand Up @@ -4098,7 +4098,7 @@ class Run(BaseModel):
None,
description=(
"The list of tasks performed by the run. Each task has its own `run_id`"
" which you can use to call `JobsGetOutput` to retrieve the run resutls."
" which you can use to call `JobsGetOutput` to retrieve the run results."
),
example=[
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2167,7 +2167,7 @@ components:
tasks:
description: The list of tasks performed by the run. Each task has its own
`run_id` which you can use to call `JobsGetOutput` to retrieve the run
resutls.
results.
example:
- attempt_number: 0
cleanup_duration: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2146,7 +2146,7 @@ components:
tasks:
description: The list of tasks performed by the run. Each task has its own
`run_id` which you can use to call `JobsGetOutput` to retrieve the run
resutls.
results.
example:
- attempt_number: 0
cleanup_duration: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
graphql_schema = sgqlc.types.Schema()


# Unexport Node/PageInfo, let schema re-declare them
# Unexport Node/PageInfo, let schema redeclare them
graphql_schema -= sgqlc.types.relay.Node
graphql_schema -= sgqlc.types.relay.PageInfo

Expand Down
16 changes: 10 additions & 6 deletions tests/test_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,19 @@ def test_from_bad_params(self):
"Function expects parameters ['dog', 'cat'] but was provided with"
" parameters ['puppy', 'kitty']"
)
sme = SignatureMismatchError.from_bad_params(["dog", "cat"], ["puppy", "kitty"])
assert str(sme) == expected
signature_mismatch_error = SignatureMismatchError.from_bad_params(
["dog", "cat"], ["puppy", "kitty"]
)
assert str(signature_mismatch_error) == expected

def test_pickle_roundtrip(self):
sme = SignatureMismatchError.from_bad_params(["dog", "cat"], ["puppy", "kitty"])
pickled = cloudpickle.dumps(sme)
signature_mismatch_error = SignatureMismatchError.from_bad_params(
["dog", "cat"], ["puppy", "kitty"]
)
pickled = cloudpickle.dumps(signature_mismatch_error)
unpickled = cloudpickle.loads(pickled)
assert str(sme) == str(unpickled)
assert sme.args == unpickled.args
assert str(signature_mismatch_error) == str(unpickled)
assert signature_mismatch_error.args == unpickled.args


class TestPrefectModuleImportExceptions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { describe, expect, it } from "vitest";
import { useListDeploymentsWithFlows } from "./use-list-deployments-with-flows";

describe("buildPaginateDeploymentsWithFlowQuery", () => {
it("fetches deplyoments pagination and flow filter APIs and joins data", async () => {
it("fetches deployments pagination and flow filter APIs and joins data", async () => {
const MOCK_DEPLOYMENTS = [
createFakeDeployment({ id: "0", flow_id: "a" }),
createFakeDeployment({ id: "1", flow_id: "a" }),
Expand Down

0 comments on commit 0726e4d

Please sign in to comment.