update pre-commit (#1163)
This commit is contained in:
@@ -2,7 +2,7 @@ default_language_version:
|
|||||||
python: python3.11
|
python: python3.11
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v4.6.0
|
rev: v5.0.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: check-added-large-files
|
- id: check-added-large-files
|
||||||
args: ['--maxkb=5000']
|
args: ['--maxkb=5000']
|
||||||
@@ -15,7 +15,7 @@ repos:
|
|||||||
- id: detect-private-key
|
- id: detect-private-key
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
# Ruff version.
|
# Ruff version.
|
||||||
rev: v0.4.4
|
rev: v0.7.3
|
||||||
hooks:
|
hooks:
|
||||||
# Run the linter.
|
# Run the linter.
|
||||||
- id: ruff
|
- id: ruff
|
||||||
@@ -37,7 +37,7 @@ repos:
|
|||||||
- id: python-use-type-annotations
|
- id: python-use-type-annotations
|
||||||
|
|
||||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||||
rev: v1.10.0
|
rev: v1.13.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: mypy
|
- id: mypy
|
||||||
args: [--show-error-codes, --warn-unused-configs, --disallow-untyped-calls, --disallow-untyped-defs, --disallow-incomplete-defs, --check-untyped-defs, --python-version=3.11]
|
args: [--show-error-codes, --warn-unused-configs, --disallow-untyped-calls, --disallow-untyped-defs, --disallow-incomplete-defs, --check-untyped-defs, --python-version=3.11]
|
||||||
|
|||||||
@@ -248,7 +248,7 @@ class ActionHandler:
|
|||||||
handler = ActionHandler._handled_action_types[action.action_type]
|
handler = ActionHandler._handled_action_types[action.action_type]
|
||||||
results = await handler(action, page, scraped_page, task, step)
|
results = await handler(action, page, scraped_page, task, step)
|
||||||
actions_result.extend(results)
|
actions_result.extend(results)
|
||||||
if not results or type(actions_result[-1]) != ActionSuccess:
|
if not results or not isinstance(actions_result[-1], ActionSuccess):
|
||||||
return actions_result
|
return actions_result
|
||||||
|
|
||||||
# do the teardown
|
# do the teardown
|
||||||
@@ -1131,7 +1131,7 @@ async def chain_click(
|
|||||||
)
|
)
|
||||||
sibling_action_result = await click_sibling_of_input(locator, timeout=timeout)
|
sibling_action_result = await click_sibling_of_input(locator, timeout=timeout)
|
||||||
action_results.append(sibling_action_result)
|
action_results.append(sibling_action_result)
|
||||||
if type(sibling_action_result) == ActionSuccess:
|
if isinstance(sibling_action_result, ActionSuccess):
|
||||||
return action_results
|
return action_results
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user