From 582372d0d59275aed0bd45b215b30866ccb70493 Mon Sep 17 00:00:00 2001 From: Jelmer Draaijer Date: Mon, 12 Dec 2022 10:09:14 +0100 Subject: [PATCH 1/2] Autoupdate pre-commit hooks & fix linting for runserver_plus.py --- .pre-commit-config.yaml | 4 ++-- django_extensions/management/commands/runserver_plus.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9a6eff1ff..fec151576 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v4.4.0 hooks: - id: trailing-whitespace - id: check-added-large-files @@ -24,7 +24,7 @@ repos: - --django exclude: ^tests/testapp|^tests/management/|^tests/collisions/|^tests/pythonrc.py|^tests/runner.py - repo: https://github.com/pycqa/flake8 - rev: 4.0.1 + rev: 6.0.0 hooks: - id: flake8 - repo: https://github.com/trbs/pre-commit-hooks-trbs.git diff --git a/django_extensions/management/commands/runserver_plus.py b/django_extensions/management/commands/runserver_plus.py index e8f104c58..f928ac40e 100644 --- a/django_extensions/management/commands/runserver_plus.py +++ b/django_extensions/management/commands/runserver_plus.py @@ -73,7 +73,7 @@ DEFAULT_POLLER_RELOADER_TYPE = getattr(settings, 'RUNSERVERPLUS_POLLER_RELOADER_TYPE', 'auto') logger = logging.getLogger(__name__) -_error_files = set() # type: Set[str] +_error_files: Set = set() if HAS_WERKZEUG: From 981761272ea9085f9f91e0463bdcf08047bb8c84 Mon Sep 17 00:00:00 2001 From: Jelmer Date: Tue, 20 Dec 2022 11:45:18 +0100 Subject: [PATCH 2/2] Update django_extensions/management/commands/runserver_plus.py Co-authored-by: Bruno Alla --- django_extensions/management/commands/runserver_plus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_extensions/management/commands/runserver_plus.py b/django_extensions/management/commands/runserver_plus.py index f928ac40e..fa8436adc 100644 --- a/django_extensions/management/commands/runserver_plus.py +++ b/django_extensions/management/commands/runserver_plus.py @@ -73,7 +73,7 @@ DEFAULT_POLLER_RELOADER_TYPE = getattr(settings, 'RUNSERVERPLUS_POLLER_RELOADER_TYPE', 'auto') logger = logging.getLogger(__name__) -_error_files: Set = set() +_error_files: Set[str] = set() if HAS_WERKZEUG: