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 #1048

Merged
merged 2 commits into from
Nov 4, 2024
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
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ repos:
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.29.3
rev: 0.29.4
hooks:
- id: check-github-workflows
- id: check-dependabot
- repo: https://github.com/asottile/pyupgrade
rev: v3.17.0
rev: v3.19.0
hooks:
- id: pyupgrade
args: ["--py38-plus"]
Expand All @@ -35,7 +35,7 @@ repos:
hooks:
- id: isort
- repo: https://github.com/sirosen/slyp
rev: 0.7.1
rev: 0.8.1
hooks:
- id: slyp
- repo: https://github.com/sirosen/texthooks
Expand Down
2 changes: 1 addition & 1 deletion reference/_generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def _format_option(optstr):


class AdocPage:
def __init__(self, ctx):
def __init__(self, ctx) -> None:
self.commandname = ctx.command_path
self.short_help = ctx.command.get_short_help_str()
self.description = textwrap.dedent(ctx.command.help).replace("\b\n", "")
Expand Down
2 changes: 1 addition & 1 deletion src/globus_cli/endpointish/endpointish.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def __init__(
endpoint_id: str | uuid.UUID,
*,
transfer_client: globus_sdk.TransferClient,
):
) -> None:
self._client = transfer_client
self.endpoint_id = endpoint_id

Expand Down
4 changes: 2 additions & 2 deletions src/globus_cli/globus_cli_flake8.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Plugin:

# args to init determine plugin behavior. see:
# https://flake8.pycqa.org/en/latest/internal/utils.html#flake8.utils.parameters_for
def __init__(self, tree):
def __init__(self, tree) -> None:
self.tree = tree

# Plugin.run() is how checks will run. For detail, see implementation of:
Expand All @@ -40,7 +40,7 @@ def run(self):


class ErrorRecordingVisitor(ast.NodeVisitor):
def __init__(self):
def __init__(self) -> None:
super().__init__()
self.collect = []

Expand Down
2 changes: 1 addition & 1 deletion src/globus_cli/login_manager/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def __init__(
self,
missing_servers: t.Sequence[str],
context: LoginContext,
):
) -> None:
self.missing_servers = missing_servers

error_message = context.error_message or self._default_error_message()
Expand Down
2 changes: 1 addition & 1 deletion src/globus_cli/parsing/param_types/task_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def __init__(
coerce_to_dir: bool = False,
normalize: bool = True,
require_absolute: bool = False,
):
) -> None:
"""
Task Paths are paths for passing into Transfer or Delete tasks.
They're only slightly more than string types: they can join themselves
Expand Down
2 changes: 1 addition & 1 deletion src/globus_cli/termio/field.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def __init__(
*,
wrap_enabled: bool = False,
formatter: formatters.FieldFormatter[t.Any] = formatters.Str,
):
) -> None:
self.name = name
self.key = key
self.wrap_enabled = wrap_enabled
Expand Down
2 changes: 1 addition & 1 deletion src/globus_cli/termio/formatters/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class PrincipalFormatter(FieldFormatter[t.Tuple[str, str]]):
- fallback
"""

def __init__(self, auth_client: globus_sdk.AuthClient):
def __init__(self, auth_client: globus_sdk.AuthClient) -> None:
self.auth_client = auth_client
self.resolved_ids = globus_sdk.IdentityMap(auth_client)

Expand Down
2 changes: 1 addition & 1 deletion tests/functional/flows/test_create_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
class IdentityPool:
IDENTITY_DATA = FLOW_IDENTITIES

def __init__(self):
def __init__(self) -> None:
self.identities = {}
self.assigned_sets = {}

Expand Down