blakeblackshear.frigate/frigate
Martin Weinelt ab50d0b006
Add isort and ruff linter (#6575)
* 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.
2023-05-29 05:31:17 -05:00
..
comms Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
detectors Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
events Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
images Replace green screen with error message and force camera_fps to 0 (#4544) 2022-11-28 21:47:20 -06:00
record Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
test Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
__init__.py app container and config schema 2021-01-26 21:40:33 -06:00
__main__.py Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
app.py Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
config.py Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
const.py Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
ffmpeg_presets.py Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
http.py Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
log.py Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
models.py Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
motion.py Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
mypy.ini update deps (#6093) 2023-04-15 14:17:59 -05:00
object_detection.py Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
object_processing.py Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
objects.py Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
output.py Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
plus.py Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
ptz.py Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
stats.py Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
storage.py Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
timeline.py Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
types.py Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
util.py Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
video.py Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
watchdog.py Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00