Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#1048)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/python-jsonschema/check-jsonschema: 0.29.3 → 0.29.4](python-jsonschema/check-jsonschema@0.29.3...0.29.4)
- [github.com/asottile/pyupgrade: v3.17.0 → v3.19.0](asottile/pyupgrade@v3.17.0...v3.19.0)
- [github.com/sirosen/slyp: 0.7.1 → 0.8.1](sirosen/slyp@0.7.1...0.8.1)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Nov 4, 2024
1 parent f356797 commit 2f5d636
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
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

0 comments on commit 2f5d636

Please sign in to comment.