From 2eef9c386dad960343f440ef302a9bcbba0c3cd2 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Feb 2024 20:26:58 +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/psf/black: 23.12.1 → 24.1.1](https://github.com/psf/black/compare/23.12.1...24.1.1) - [github.com/PyCQA/flake8: 6.1.0 → 7.0.0](https://github.com/PyCQA/flake8/compare/6.1.0...7.0.0) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5d303d1..0a60965 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -33,7 +33,7 @@ repos: # Autoformat: Python code - repo: https://github.com/psf/black - rev: 23.12.1 + rev: 24.1.1 hooks: - id: black @@ -54,7 +54,7 @@ repos: # Linting: Python code (see the file .flake8) - repo: https://github.com/PyCQA/flake8 - rev: "6.1.0" + rev: "7.0.0" hooks: - id: flake8 From 1d8172161a857b4491eb05b2799e922ad13e62d3 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Feb 2024 20:29:06 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- simpervisor/atexitasync.py | 1 + simpervisor/process.py | 1 + tests/child_scripts/signalprinter.py | 1 + tests/child_scripts/signalsupervisor.py | 1 + tests/child_scripts/simplehttpserver.py | 1 + 5 files changed, 5 insertions(+) diff --git a/simpervisor/atexitasync.py b/simpervisor/atexitasync.py index 65aa954..a264e8a 100644 --- a/simpervisor/atexitasync.py +++ b/simpervisor/atexitasync.py @@ -3,6 +3,7 @@ Handles SIGINT and SIGTERM, unlike atexit """ + import signal import sys diff --git a/simpervisor/process.py b/simpervisor/process.py index abe47ab..c9721e0 100644 --- a/simpervisor/process.py +++ b/simpervisor/process.py @@ -1,6 +1,7 @@ """ Simple asynchronous process supervisor """ + import asyncio import logging import signal diff --git a/tests/child_scripts/signalprinter.py b/tests/child_scripts/signalprinter.py index 61b583c..c09320e 100644 --- a/tests/child_scripts/signalprinter.py +++ b/tests/child_scripts/signalprinter.py @@ -1,6 +1,7 @@ """ Print received SIGTERM & SIGINT signals """ + import asyncio import sys from functools import partial diff --git a/tests/child_scripts/signalsupervisor.py b/tests/child_scripts/signalsupervisor.py index 0344a42..23c9aff 100644 --- a/tests/child_scripts/signalsupervisor.py +++ b/tests/child_scripts/signalsupervisor.py @@ -1,6 +1,7 @@ """ Start a child process that prints signals it receives """ + import asyncio import os import sys diff --git a/tests/child_scripts/simplehttpserver.py b/tests/child_scripts/simplehttpserver.py index 268dc7d..c3fcdf8 100644 --- a/tests/child_scripts/simplehttpserver.py +++ b/tests/child_scripts/simplehttpserver.py @@ -1,6 +1,7 @@ """ Simple echo http server """ + import os import sys import time