Skip to content

Commit f8a4a27

Browse files
authored
[pre-commit.ci] pre-commit autoupdate (#1378)
2 parents a7c730a + 0b85ff6 commit f8a4a27

13 files changed

Lines changed: 28 additions & 54 deletions

File tree

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ repos:
1212
args:
1313
- "--fix=lf"
1414
- repo: https://github.com/python-jsonschema/check-jsonschema
15-
rev: 0.36.0
15+
rev: 0.37.1
1616
hooks:
1717
- id: check-github-workflows
1818
- id: check-readthedocs
@@ -22,7 +22,7 @@ repos:
2222
- id: pyupgrade
2323
args: ["--py39-plus"]
2424
- repo: https://github.com/psf/black-pre-commit-mirror
25-
rev: 25.12.0
25+
rev: 26.3.1
2626
hooks:
2727
- id: black
2828
name: "Autoformat python files"
@@ -41,7 +41,7 @@ repos:
4141
- 'flake8-comprehensions==3.16.0'
4242
- 'flake8-typing-as-t==1.0.0'
4343
- repo: https://github.com/PyCQA/isort
44-
rev: 7.0.0
44+
rev: 8.0.1
4545
hooks:
4646
- id: isort
4747
name: "Sort python imports"
@@ -54,7 +54,7 @@ repos:
5454
hooks:
5555
- id: slyp
5656
- repo: https://github.com/codespell-project/codespell
57-
rev: v2.4.1
57+
rev: v2.4.2
5858
hooks:
5959
- id: codespell
6060
args: ["--ignore-regex", "https://[^\\s]*"]
@@ -63,7 +63,7 @@ repos:
6363
hooks:
6464
- id: alphabetize-codeowners
6565
- repo: https://github.com/rhysd/actionlint
66-
rev: v1.7.10
66+
rev: v1.7.12
6767
hooks:
6868
- id: actionlint
6969
additional_dependencies:

changelog.d/check-version-is-new.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"""
33
Check if the version number in the source is already present as a changelog header.
44
"""
5+
56
import os
67
import re
78
import sys

changelog.d/update-pr-refs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"""
33
Meant to run in the context of a PR GitHub Actions workflow from the repo root
44
"""
5+
56
import argparse
67
import glob
78
import json

src/globus_sdk/globus_app/client_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class ClientApp(GlobusApp):
5151
"""
5252

5353
_login_client: ConfidentialAppAuthClient
54-
_authorizer_factory: ClientCredentialsAuthorizerFactory # type:ignore
54+
_authorizer_factory: ClientCredentialsAuthorizerFactory # type: ignore
5555

5656
def __init__(
5757
self,

src/globus_sdk/globus_app/user_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class UserApp(GlobusApp):
6969
"""
7070

7171
_login_client: NativeAppAuthClient | ConfidentialAppAuthClient
72-
_authorizer_factory: ( # type:ignore
72+
_authorizer_factory: ( # type: ignore
7373
AccessTokenAuthorizerFactory | RefreshTokenAuthorizerFactory
7474
)
7575

src/globus_sdk/login_flows/command_line_login_flow_manager.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,16 +119,12 @@ def print_authorize_url(self, authorize_url: str) -> None:
119119
application accesses.
120120
"""
121121
login_prompt = "Please authenticate with Globus here:"
122-
print(
123-
textwrap.dedent(
124-
f"""
122+
print(textwrap.dedent(f"""
125123
{login_prompt}
126124
{"-" * len(login_prompt)}
127125
{authorize_url}
128126
{"-" * len(login_prompt)}
129-
"""
130-
)
131-
)
127+
"""))
132128

133129
def prompt_for_code(self) -> str:
134130
"""

src/globus_sdk/services/auth/client/confidential_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ def create_child_client(
355355
:param privacy_policy: URL of client's privacy policy.
356356
:param required_idp: In order to use this client a user must have an identity
357357
from this IdP in their identity set.
358-
:param preselect_idp: This pre-selects the given IdP on the Globus Auth login
358+
:param preselect_idp: This preselects the given IdP on the Globus Auth login
359359
page if the user is not already authenticated.
360360
:param additional_fields: Any additional parameters to be passed through.
361361

src/globus_sdk/services/auth/client/service_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,7 +1131,7 @@ def create_client(
11311131
:param privacy_policy: URL of client's privacy policy.
11321132
:param required_idp: In order to use this client a user must have an identity
11331133
from this IdP in their identity set.
1134-
:param preselect_idp: This pre-selects the given IdP on the Globus Auth login
1134+
:param preselect_idp: This preselects the given IdP on the Globus Auth login
11351135
page if the user is not already authenticated.
11361136
:param additional_fields: Any additional parameters to be passed through.
11371137
@@ -1229,7 +1229,7 @@ def update_client(
12291229
:param privacy_policy: URL of client's privacy policy.
12301230
:param required_idp: In order to use this client a user must have an identity
12311231
from this IdP in their identity set.
1232-
:param preselect_idp: This pre-selects the given IdP on the Globus Auth login
1232+
:param preselect_idp: This preselects the given IdP on the Globus Auth login
12331233
page if the user is not already authenticated.
12341234
:param additional_fields: Any additional parameters to be passed through.
12351235

src/globus_sdk/token_storage/legacy/sqlite_adapter.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ def _init_and_connect(
6868
else:
6969
conn = sqlite3.connect(self.dbname, **connect_params)
7070
if init_tables:
71-
conn.executescript(
72-
"""
71+
conn.executescript("""
7372
CREATE TABLE config_storage (
7473
namespace VARCHAR NOT NULL,
7574
config_name VARCHAR NOT NULL,
@@ -87,8 +86,7 @@ def _init_and_connect(
8786
value VARCHAR NOT NULL,
8887
PRIMARY KEY (attribute)
8988
);
90-
"""
91-
)
89+
""")
9290
# mark the version which was used to create the DB
9391
# also mark the "database schema version" in case we ever need to handle
9492
# graceful upgrades

src/globus_sdk/token_storage/sqlite.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,7 @@ def _init_and_connect(
5555
conn: sqlite3.Connection = sqlite3.connect(
5656
self.filepath, **connect_params
5757
)
58-
conn.executescript(
59-
textwrap.dedent(
60-
"""
58+
conn.executescript(textwrap.dedent("""
6159
CREATE TABLE token_storage (
6260
namespace VARCHAR NOT NULL,
6361
resource_server VARCHAR NOT NULL,
@@ -69,9 +67,7 @@ def _init_and_connect(
6967
value VARCHAR NOT NULL,
7068
PRIMARY KEY (attribute)
7169
);
72-
"""
73-
)
74-
)
70+
"""))
7571
# mark the version which was used to create the DB
7672
# also mark the "database schema version" in case we ever need to handle
7773
# graceful upgrades

0 commit comments

Comments
 (0)