Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.3
rev: v0.15.6
hooks:
- id: ruff
- id: ruff-format
args: ["--check"]

- repo: https://github.com/pycqa/isort
rev: 5.13.2
rev: 8.0.1
hooks:
- id: isort

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.4.2
rev: 26.3.1
hooks:
- id: black

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v6.0.0
hooks:
- id: check-case-conflict
- id: check-merge-conflict
Expand All @@ -27,11 +27,11 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/tox-dev/pyproject-fmt
rev: 1.8.0
rev: v2.19.0
hooks:
- id: pyproject-fmt

- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.16
rev: v0.25
hooks:
- id: validate-pyproject
70 changes: 34 additions & 36 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -43,6 +43,8 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
"Topic :: Multimedia :: Video",
"Topic :: Security",
Expand All @@ -51,48 +53,44 @@ 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"',
'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"',
"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'",
"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'",
]
[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"]
isolated = true

[tool.hatch.version]
path = "mjpeg_streamer/__init__.py"
[tool.hatch]
build.packages = [ "mjpeg_streamer" ]
build.exclude = [ "examples" ]
build.isolated = true
version.path = "mjpeg_streamer/__init__.py"

[tool.ruff]
exclude = ["examples", "test*"]
exclude = [ "examples", "test*" ]
fix = false
lint.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
"EM101", # Exception must not use a string literal
"EM102", # Exception must not use an f-string literal
"FA100", # Missing `from __future__ import annotations` | It works without it
"FBT001", # Boolean-typed positional argument in function definition
"S104", # Possible binding to all interfaces | False positive
"T201", # `print` found | TODO: Migrate to logging
"TID252", # Relative imports are banned | __init__.py
"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
]

[tool.isort]
profile = "black"
known_first_party = "mjpeg_streamer"
skip = ["examples"]
skip = [ "examples" ]