Skip to content

Commit 0d9b80e

Browse files
[pre-commit.ci] pre-commit autoupdate (#2107)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.9.10 → v0.11.0](astral-sh/ruff-pre-commit@v0.9.10...v0.11.0) - [github.com/abravalheri/validate-pyproject: v0.23 → v0.24](abravalheri/validate-pyproject@v0.23...v0.24) * [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>
1 parent 86b67bb commit 0d9b80e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ repos:
2929
- id: biome-check
3030
verbose: true
3131
- repo: https://github.com/astral-sh/ruff-pre-commit
32-
rev: 'v0.9.10'
32+
rev: 'v0.11.0'
3333
hooks:
3434
- id: ruff
3535
args: [--fix, --exit-non-zero-on-fix]
@@ -39,6 +39,6 @@ repos:
3939
hooks:
4040
- id: pyproject-fmt
4141
- repo: https://github.com/abravalheri/validate-pyproject
42-
rev: v0.23
42+
rev: v0.24
4343
hooks:
4444
- id: validate-pyproject

debug_toolbar/panels/cache.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def __init__(self, *args, **kwargs):
6868
self.hits = 0
6969
self.misses = 0
7070
self.calls = []
71-
self.counts = {name: 0 for name in WRAPPED_CACHE_METHODS}
71+
self.counts = dict.fromkeys(WRAPPED_CACHE_METHODS, 0)
7272

7373
@classmethod
7474
def current_instance(cls):

0 commit comments

Comments
 (0)