Skip to content

Commit e56280b

Browse files
authored
Merge pull request #2492 from manics/pre-commit
Attempt to fix pre-commit failures
2 parents 5bcd090 + c3b1e81 commit e56280b

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ repos:
2222

2323
# Autoformat: Python code
2424
- repo: https://github.com/psf/black
25-
rev: 22.12.0
25+
rev: 23.1.0
2626
hooks:
2727
- id: black
2828
args:
@@ -34,7 +34,7 @@ repos:
3434

3535
# Autoformat: Python code
3636
- repo: https://github.com/pycqa/isort
37-
rev: 5.11.4
37+
rev: 5.12.0
3838
hooks:
3939
- id: isort
4040
args:

images/analytics-publisher/indexer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ def index_events(project, bucket, debug=False, dry_run=False):
4646
with tempfile.TemporaryFile(mode="w+") as htmlfile, tempfile.TemporaryFile(
4747
mode="w+"
4848
) as jsonlfile:
49-
5049
html_index = html_template.render(
5150
archives=sorted(
5251
archives, key=lambda archive: archive["date"], reverse=True

images/federation-redirect/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def rendezvous_rank(buckets, key):
117117
all buckets, sorted in decreasing order (highest ranked first).
118118
"""
119119
ranking = []
120-
for (bucket, weight) in buckets:
120+
for bucket, weight in buckets:
121121
# The particular hash function doesn't matter a lot, as long as it is
122122
# one that maps the key to a fixed sized value and distributes the keys
123123
# uniformly across the output space

scripts/delete-old-images.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ async def bounded(f, *args, **kwargs):
166166
auth=aiohttp.BasicAuth("_json_key", password),
167167
connector=aiohttp.TCPConnector(limit=2 * concurrency),
168168
) as session:
169-
170169
print("Fetching images")
171170
tag_futures = []
172171
matches = 0

0 commit comments

Comments
 (0)