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