From c1782052f6819e88643cdc4398fced6371666f92 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 21:17:19 +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/astral-sh/ruff-pre-commit: v0.4.3 → v0.8.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.3...v0.8.2) - [github.com/psf/black-pre-commit-mirror: 24.4.2 → 24.10.0](https://github.com/psf/black-pre-commit-mirror/compare/24.4.2...24.10.0) - [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.6.0...v5.0.0) - [github.com/tox-dev/pyproject-fmt: 1.8.0 → v2.5.0](https://github.com/tox-dev/pyproject-fmt/compare/1.8.0...v2.5.0) - [github.com/abravalheri/validate-pyproject: v0.16 → v0.23](https://github.com/abravalheri/validate-pyproject/compare/v0.16...v0.23) --- .pre-commit-config.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a7b3b56..7450d4e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.4.3 + rev: v0.8.2 hooks: - id: ruff - id: ruff-format @@ -12,12 +12,12 @@ repos: - id: isort - repo: https://github.com/psf/black-pre-commit-mirror - rev: 24.4.2 + rev: 24.10.0 hooks: - id: black - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: check-case-conflict - id: check-merge-conflict @@ -27,11 +27,11 @@ repos: - id: trailing-whitespace - repo: https://github.com/tox-dev/pyproject-fmt - rev: 1.8.0 + rev: v2.5.0 hooks: - id: pyproject-fmt - repo: https://github.com/abravalheri/validate-pyproject - rev: v0.16 + rev: v0.23 hooks: - id: validate-pyproject From 587f455889b82ccd1e283cc0ed12d0fa933a6155 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 21:17:28 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pyproject.toml | 61 +++++++++++++++++++++++++------------------------- 1 file changed, 30 insertions(+), 31 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 34a047d..4f67313 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,8 +21,8 @@ keywords = [ "video", "webcam", ] -license = {text = "AGPLv3"} -authors = [{name = "Ege Akman", email = "me@egeakman.dev"}] +license = { text = "AGPLv3" } +authors = [ { name = "Ege Akman", email = "me@egeakman.dev" } ] requires-python = ">=3.6" classifiers = [ "Development Status :: 5 - Production/Stable", @@ -43,6 +43,7 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Topic :: Internet :: WWW/HTTP :: HTTP Servers", "Topic :: Multimedia :: Video", "Topic :: Security", @@ -51,49 +52,47 @@ dynamic = [ "version", ] dependencies = [ - 'aiohttp==3.8.6; python_version >= "3.6" and python_version <= "3.7"', - 'aiohttp==3.9.1; python_version == "3.8"', - 'aiohttp; python_version >= "3.9"', + "aiohttp; python_version>='3.9'", + "aiohttp==3.8.6; python_version>='3.6' and python_version<='3.7'", + "aiohttp==3.9.1; python_version=='3.8'", "netifaces", - 'numpy==1.19.5; python_version == "3.6"', - 'numpy==1.21.6; python_version == "3.7"', - 'numpy==1.24.4; python_version == "3.8"', - 'numpy; python_version >= "3.9"', - 'opencv-python==4.6.0.66; python_version == "3.6"', - 'opencv-python==4.8.1.78; python_version >= "3.7" and python_version <= "3.8"', - 'opencv-python; python_version >= "3.9"', + "numpy; python_version>='3.9'", + "numpy==1.19.5; python_version=='3.6'", + "numpy==1.21.6; python_version=='3.7'", + "numpy==1.24.4; python_version=='3.8'", + "opencv-python; python_version>='3.9'", + "opencv-python==4.6.0.66; python_version=='3.6'", + "opencv-python==4.8.1.78; python_version>='3.7' and python_version<='3.8'", ] -[project.urls] -Homepage = "https://github.com/egeakman/mjpeg-streamer" -Issues = "https://github.com/egeakman/mjpeg-streamer/issues" -Releases = "https://github.com/egeakman/mjpeg-streamer/releases" -[project.scripts] -mjpeg-streamer = "mjpeg_streamer.cli:main" +urls.Homepage = "https://github.com/egeakman/mjpeg-streamer" +urls.Issues = "https://github.com/egeakman/mjpeg-streamer/issues" +urls.Releases = "https://github.com/egeakman/mjpeg-streamer/releases" +scripts.mjpeg-streamer = "mjpeg_streamer.cli:main" [tool.hatch.build] -packages = ["mjpeg_streamer"] -exclude = ["examples"] +packages = [ "mjpeg_streamer" ] +exclude = [ "examples" ] isolated = true [tool.hatch.version] path = "mjpeg_streamer/__init__.py" [tool.ruff] -exclude = ["examples"] +exclude = [ "examples" ] fix = false ignore = [ - "TID252", # Relative imports are banned | __init__.py - "T201", # `print` found | TODO: Migrate to logging - "S104", # Possible binding to all interfaces | False positive - "EM101", # Exception must not use a string literal - "EM102", # Exception must not use an f-string literal - "TRY003", # Avoid specifying long messages outside the exception class - "UP007", # Use `X | Y` for type annotations | Have to use `typing.Union` for Python 3.6 compatibility - "FBT001", # Boolean-typed positional argument in function definition - "FA100", # Missing `from __future__ import annotations` | It works without it + "TID252", # Relative imports are banned | __init__.py + "T201", # `print` found | TODO: Migrate to logging + "S104", # Possible binding to all interfaces | False positive + "EM101", # Exception must not use a string literal + "EM102", # Exception must not use an f-string literal + "TRY003", # Avoid specifying long messages outside the exception class + "UP007", # Use `X | Y` for type annotations | Have to use `typing.Union` for Python 3.6 compatibility + "FBT001", # Boolean-typed positional argument in function definition + "FA100", # Missing `from __future__ import annotations` | It works without it ] [tool.isort] profile = "black" known_first_party = "mjpeg_streamer" -skip = ["examples"] +skip = [ "examples" ]