Merge pull request #4626 from jupyterhub/pre-commit-ci-update-config

[pre-commit.ci] pre-commit autoupdate
This commit is contained in:
Min RK
2023-11-07 14:36:00 +01:00
committed by GitHub
2 changed files with 4 additions and 4 deletions

View File

@@ -16,7 +16,7 @@ ci:
repos:
# Autoformat: Python code, syntax patterns are modernized
- repo: https://github.com/asottile/pyupgrade
rev: v3.14.0
rev: v3.15.0
hooks:
- id: pyupgrade
args:
@@ -39,7 +39,7 @@ repos:
# Autoformat: Python code
- repo: https://github.com/psf/black
rev: 23.9.1
rev: 23.10.1
hooks:
- id: black
@@ -51,7 +51,7 @@ repos:
# Autoformat and linting, misc. details
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: end-of-file-fixer
exclude: share/jupyterhub/static/js/admin-react.js

View File

@@ -187,7 +187,7 @@ class UserDict(dict):
Returns dict with counts of active/pending/ready servers
"""
counts = defaultdict(lambda: 0)
counts = defaultdict(int)
for user in self.values():
for spawner in user.spawners.values():
pending = spawner.pending