Deep-Live-Cam/modules
Max Buckley cfa8123b67 Add ruff CI gate and fix deterministic lint issues
Introduces pyproject.toml + .github/workflows/ruff.yml that gate
E701, E711, E712, F401, F541 on every PR and push to main.

Fixes the existing findings for those rules:
- Remove unused imports (sklearn.silhouette_score, numpy in several
  files, typing.Optional, get_one_face, gpu_cvt_color, sys,
  insightface.face_align)
- Annotate the intentional tkinter_fix side-effect import with
  `# noqa: F401`
- Split multi-statement `if x: y` one-liners onto separate lines
- Replace `state == True` / `state == False` with truthiness checks
- Drop `f` prefix from f-strings with no placeholders

F841 (unused-variable), E402 (module-level-import-not-at-top), and
F821 (undefined-name) are left out of the gate for now — they surface
real findings (including a latent NameError in face_swapper.py) that
require human review to fix safely.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-23 15:44:31 +02:00
..
processors Add ruff CI gate and fix deterministic lint issues 2026-05-23 15:44:31 +02:00
__init__.py Fix: resolve 5 confirmed bugs (imwrite_unicode, macOS memory, face_analyser None crash, silent sys.exit, core memory calc) 2026-05-23 10:37:20 +08:00
capturer.py GPU Accelerated OpenCV 2026-02-12 19:44:04 +08:00
cluster_analysis.py Add ruff CI gate and fix deterministic lint issues 2026-05-23 15:44:31 +02:00
core.py Add ruff CI gate and fix deterministic lint issues 2026-05-23 15:44:31 +02:00
custom_types.py Version 2.0c Release! 2025-10-12 22:33:09 +08:00
face_analyser.py Add ruff CI gate and fix deterministic lint issues 2026-05-23 15:44:31 +02:00
gettext.py add mutil language 2025-01-07 14:04:18 +08:00
globals.py feat: AMD DML optimization - GPU face detection, detection throttle, pre-load fix 2026-04-01 23:56:01 +08:00
gpu_processing.py Add ruff CI gate and fix deterministic lint issues 2026-05-23 15:44:31 +02:00
metadata.py Changed to pyqtUI 2026-05-15 16:33:27 +08:00
onnx_optimize.py Add ruff CI gate and fix deterministic lint issues 2026-05-23 15:44:31 +02:00
paths.py feat: add GPEN-BFR 256 and 512 ONNX face enhancers 2026-02-22 19:39:12 +02:00
platform_info.py Speed optimization 2026-05-15 15:53:55 +08:00
predicter.py GPU Accelerated OpenCV 2026-02-12 19:44:04 +08:00
run.py Add ruff CI gate and fix deterministic lint issues 2026-05-23 15:44:31 +02:00
tkinter_fix.py Version 2.0c Release! 2025-10-12 22:33:09 +08:00
typing.py initial commit 2023-09-24 21:36:57 +08:00
ui_tooltip.py feat(ui): add hover tooltips to all controls 2026-02-24 21:41:24 +02:00
ui.json reverted to the old version 2024-09-19 17:38:02 +08:00
ui.py Fix mouth mask 2026-05-18 02:11:04 +08:00
utilities.py Rendering optimization 2026-04-09 16:25:22 +08:00
video_capture.py Add ruff CI gate and fix deterministic lint issues 2026-05-23 15:44:31 +02:00