mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-12-29 00:06:19 +01:00
ab50d0b006
* Add isort and ruff linter Both linters are pretty common among modern python code bases. The isort tool provides stable sorting and grouping, as well as pruning of unused imports. Ruff is a modern linter, that is very fast due to being written in rust. It can detect many common issues in a python codebase. Removes the pylint dev requirement, since ruff replaces it. * treewide: fix issues detected by ruff * treewide: fix bare except clauses * .devcontainer: Set up isort * treewide: optimize imports * treewide: apply black * treewide: make regex patterns raw strings This is necessary for escape sequences to be properly recognized.
18 lines
290 B
Python
18 lines
290 B
Python
import faulthandler
|
|
import threading
|
|
|
|
from flask import cli
|
|
|
|
from frigate.app import FrigateApp
|
|
|
|
faulthandler.enable()
|
|
|
|
threading.current_thread().name = "frigate"
|
|
|
|
cli.show_server_banner = lambda *x: None
|
|
|
|
if __name__ == "__main__":
|
|
frigate_app = FrigateApp()
|
|
|
|
frigate_app.start()
|