From 7a491b657204a3e648e5acca96f981500fa03114 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 4 Nov 2024 23:15:38 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/asottile/pyupgrade: v3.15.0 → v3.19.0](https://github.com/asottile/pyupgrade/compare/v3.15.0...v3.19.0) - [github.com/PyCQA/autoflake: v2.2.1 → v2.3.1](https://github.com/PyCQA/autoflake/compare/v2.2.1...v2.3.1) - [github.com/pycqa/isort: 5.12.0 → 5.13.2](https://github.com/pycqa/isort/compare/5.12.0...5.13.2) - [github.com/psf/black: 23.10.1 → 24.10.0](https://github.com/psf/black/compare/23.10.1...24.10.0) - [github.com/pre-commit/mirrors-prettier: v3.0.3 → v4.0.0-alpha.8](https://github.com/pre-commit/mirrors-prettier/compare/v3.0.3...v4.0.0-alpha.8) - [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v5.0.0) - [github.com/PyCQA/flake8: 6.1.0 → 7.1.1](https://github.com/PyCQA/flake8/compare/6.1.0...7.1.1) --- .pre-commit-config.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b06a468d..72809fc1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,7 +11,7 @@ repos: # Autoformat: Python code, syntax patterns are modernized - repo: https://github.com/asottile/pyupgrade - rev: v3.15.0 + rev: v3.19.0 hooks: - id: pyupgrade args: @@ -19,7 +19,7 @@ repos: # Autoformat: Python code - repo: https://github.com/PyCQA/autoflake - rev: v2.2.1 + rev: v2.3.1 hooks: - id: autoflake # args ref: https://github.com/PyCQA/autoflake#advanced-usage @@ -28,26 +28,26 @@ repos: # Autoformat: Python code - repo: https://github.com/pycqa/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort # Autoformat: Python code - repo: https://github.com/psf/black - rev: 23.10.1 + rev: 24.10.0 hooks: - id: black exclude: "contrib\/template\/.*" # Autoformat: markdown, yaml - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.0.3 + rev: v4.0.0-alpha.8 hooks: - id: prettier # Misc... - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v5.0.0 # ref: https://github.com/pre-commit/pre-commit-hooks#hooks-available hooks: # Autoformat: Makes sure files end in a newline and only a newline. @@ -65,7 +65,7 @@ repos: # Lint: Python code - repo: https://github.com/PyCQA/flake8 - rev: "6.1.0" + rev: "7.1.1" hooks: - id: flake8 From 060624421e17bb74355ac7d29661f0ea90b69eb9 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 4 Nov 2024 23:16:10 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- contrib/theia/jupyter_theia_proxy/__init__.py | 1 + tests/conftest.py | 1 + tests/resources/httpinfo.py | 1 + 3 files changed, 3 insertions(+) diff --git a/contrib/theia/jupyter_theia_proxy/__init__.py b/contrib/theia/jupyter_theia_proxy/__init__.py index 008ff468..bfd51589 100644 --- a/contrib/theia/jupyter_theia_proxy/__init__.py +++ b/contrib/theia/jupyter_theia_proxy/__init__.py @@ -4,6 +4,7 @@ See https://jupyter-server-proxy.readthedocs.io/en/latest/server-process.html for more information. """ + import os import shutil diff --git a/tests/conftest.py b/tests/conftest.py index 90fd3893..e6b7e9f4 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,4 +1,5 @@ """Reusable test fixtures for ``jupyter_server_proxy``.""" + import os import shutil import socket diff --git a/tests/resources/httpinfo.py b/tests/resources/httpinfo.py index 1bb1faa9..64779a10 100644 --- a/tests/resources/httpinfo.py +++ b/tests/resources/httpinfo.py @@ -2,6 +2,7 @@ Simple webserver to respond with an echo of the sent request. It can listen to either a tcp port or a unix socket. """ + import argparse import socket import sys