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 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