ci: add code check workflow #1
check-code.yml
on: pull_request
Code Linting
7s
Type Checking
17s
Annotations
11 errors
|
Code Linting
The process '/opt/hostedtoolcache/ruff/0.15.21/x86_64/ruff' failed with exit code 1
|
|
ruff (I001):
typings/picamera2/__init__.pyi#L1
typings/picamera2/__init__.pyi:1:1: I001 Import block is un-sorted or un-formatted
help: Organize imports
|
|
ruff (UP035):
typings/libcamera/_libcamera.pyi#L1
typings/libcamera/_libcamera.pyi:1:1: UP035 Import from `collections.abc` instead: `Iterator`
help: Import from `collections.abc`
|
|
ruff (F403):
typings/libcamera/__init__.pyi#L1
typings/libcamera/__init__.pyi:1:1: F403 `from ._libcamera import *` used; unable to detect undefined names
|
|
ruff (F401):
tests/test_cli.py#L1
tests/test_cli.py:1:8: F401 `argparse` imported but unused
help: Remove unused import: `argparse`
|
|
ruff (UP007):
spyglass/server/webrtc_whep.py#L204
spyglass/server/webrtc_whep.py:204:15: UP007 Use `X | Y` for type annotations
help: Convert to `X | Y`
|
|
ruff (C901):
spyglass/server/webrtc_whep.py#L88
spyglass/server/webrtc_whep.py:88:11: C901 `do_POST_async` is too complex (12 > 10)
|
|
ruff (UP037):
spyglass/server/http_server.py#L81
spyglass/server/http_server.py:81:27: UP037 Remove quotes from type annotation
help: Remove quotes
|
|
ruff (E722):
spyglass/cli.py#L173
spyglass/cli.py:173:5: E722 Do not use bare `except`
|
|
ruff (UP015):
spyglass/camera_options.py#L64
spyglass/camera_options.py:64:31: UP015 Unnecessary mode argument
help: Remove mode argument
|
|
ruff (I001):
spyglass/camera/lazy_encoder.py#L24
spyglass/camera/lazy_encoder.py:24:1: I001 Import block is un-sorted or un-formatted
help: Organize imports
|