Skip to content
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

[pre-commit.ci] pre-commit autoupdate #8

Open
wants to merge 2 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
6 changes: 5 additions & 1 deletion .github/workflows/scripts/register_flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@ def build_and_register( # pylint: disable=too-many-branches
while attempts < max_retries:
attempts += 1
try:
(flow_id, flow_version, is_new,) = register_serialized_flow(
(
flow_id,
flow_version,
is_new,
) = register_serialized_flow(
client=client,
serialized_flow=serialized_flow,
project_id=project_id,
Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v5.0.0
hooks:
- id: check-added-large-files # prevents adding large files
- id: detect-private-key # detects private keys
Expand All @@ -10,17 +10,17 @@ repos:
- id: trailing-whitespace # prevents trailing whitespace

- repo: https://github.com/psf/black
rev: 22.12.0
rev: 24.10.0
hooks:
- id: black
language_version: python3.10

- repo: https://github.com/PyCQA/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort

- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
rev: 7.1.1
hooks:
- id: flake8
4 changes: 1 addition & 3 deletions pipelines/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,7 @@ def inject_bd_credentials(environment: str = "dev", force_injection=False) -> No
environ["GOOGLE_APPLICATION_CREDENTIALS"] = "/tmp/credentials.json"


def authenticated_task(
fn: Callable = None, **task_init_kwargs: Any
) -> Union[
def authenticated_task(fn: Callable = None, **task_init_kwargs: Any) -> Union[
prefect.tasks.core.function.FunctionTask,
Callable[[Callable], prefect.tasks.core.function.FunctionTask],
]:
Expand Down
Loading