Skip to content

Commit dbede66

Browse files
authored
Merge pull request #71 from globus/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents e7a7c69 + d296b9d commit dbede66

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,24 @@ repos:
2020
- id: trailing-whitespace
2121

2222
- repo: https://github.com/sirosen/texthooks
23-
rev: 0.6.7
23+
rev: 0.6.8
2424
hooks:
2525
- id: alphabetize-codeowners
2626

2727
- repo: https://github.com/python-jsonschema/check-jsonschema
28-
rev: 0.29.3
28+
rev: 0.30.0
2929
hooks:
3030
- id: check-github-workflows
3131
- id: check-dependabot
3232

3333
- repo: https://github.com/asottile/pyupgrade
34-
rev: v3.17.0
34+
rev: v3.19.1
3535
hooks:
3636
- id: pyupgrade
3737
args: ["--py38-plus"]
3838

3939
- repo: https://github.com/sirosen/slyp
40-
rev: 0.7.1
40+
rev: 0.8.1
4141
hooks:
4242
- id: slyp
4343

daemon/globus_cw_daemon/cwlogs.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def _add_emf_header(request, **kwargs):
3333

3434

3535
class Event:
36-
def __init__(self, timestamp, message, enforce_limit=True):
36+
def __init__(self, timestamp, message, enforce_limit=True) -> None:
3737
"""
3838
Raise: InvalidMessage if message is too long
3939
Raise: UnicodeDecodeError if message is not valid utf8
@@ -55,9 +55,9 @@ def __init__(self, timestamp, message, enforce_limit=True):
5555

5656

5757
class _Batch:
58-
def __init__(self):
58+
def __init__(self) -> None:
5959
self.nr_bytes = 0
60-
self.records = []
60+
self.records: list[Event] = []
6161

6262
def add(self, record):
6363
"""
@@ -97,7 +97,7 @@ def time_diff_exceeded(a, b):
9797

9898

9999
class LogWriter:
100-
def __init__(self, group_name, stream_name, aws_region=None):
100+
def __init__(self, group_name, stream_name, aws_region=None) -> None:
101101
"""
102102
Create the @stream_name if it doesn't exist.
103103
Raise: exception if boto can't connect.

daemon/globus_cw_daemon/local_logging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class PrintKFormatter(logging.Formatter):
2424
inspiration from the printk() kernel logging facilities.
2525
"""
2626

27-
def __init__(self, *args, **kwargs):
27+
def __init__(self, *args, **kwargs) -> None:
2828
kwargs["fmt"] = (
2929
"%(asctime)s.%(msecs)03d %(levelname)s %(process)d:%(thread)d "
3030
"%(name)s: %(message)s"

0 commit comments

Comments
 (0)