Skip to content

Commit 4f7a375

Browse files
authored
Merge pull request #96 from bgilbert/pre-commit
pre-commit: update versions
2 parents 71a22c4 + c312393 commit 4f7a375

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ exclude: '^(api/|demo/openseadragon-scalebar\.js)'
33

44
repos:
55
- repo: https://github.com/pre-commit/pre-commit-hooks
6-
rev: v4.5.0
6+
rev: v5.0.0
77
hooks:
88
- id: check-added-large-files
99
- id: check-merge-conflict
@@ -15,7 +15,7 @@ repos:
1515
- id: trailing-whitespace
1616

1717
- repo: https://github.com/asottile/pyupgrade
18-
rev: v3.15.0
18+
rev: v3.18.0
1919
hooks:
2020
- id: pyupgrade
2121
name: Modernize Python code
@@ -28,7 +28,7 @@ repos:
2828
name: Reorder Python imports with isort
2929

3030
- repo: https://github.com/psf/black
31-
rev: 23.12.1
31+
rev: 24.10.0
3232
hooks:
3333
- id: black
3434
name: Format Python code with black
@@ -40,14 +40,14 @@ repos:
4040
additional_dependencies: [flake8-bugbear, Flake8-pyproject]
4141

4242
- repo: https://github.com/PyCQA/flake8
43-
rev: 6.1.0
43+
rev: 7.1.1
4444
hooks:
4545
- id: flake8
4646
name: Lint Python code with flake8
4747
additional_dependencies: [flake8-bugbear, Flake8-pyproject]
4848

4949
- repo: https://github.com/pre-commit/mirrors-mypy
50-
rev: v1.8.0
50+
rev: v1.12.0
5151
hooks:
5252
- id: mypy
5353
name: Check Python types

demo/_synctiles.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,9 @@ def upload_metadata(
261261
) -> None:
262262
self.object(path).put(
263263
Body=json.dumps(item, indent=1, sort_keys=True).encode(),
264-
CacheControl=CACHE_CONTROL_CACHE
265-
if cache
266-
else CACHE_CONTROL_NOCACHE,
264+
CacheControl=(
265+
CACHE_CONTROL_CACHE if cache else CACHE_CONTROL_NOCACHE
266+
),
267267
ContentType='application/json',
268268
)
269269

0 commit comments

Comments
 (0)