blakeblackshear.frigate/migrations
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
..
001_create_events_table.py Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
002_add_clip_snapshot.py Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
003_create_recordings_table.py Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
004_add_bbox_region_area.py Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
005_make_end_time_nullable.py Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
006_add_motion_active_objects.py Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
007_add_retain_indefinitely.py Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
008_add_sub_label.py Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
009_add_object_filter_ratio.py Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
010_add_plus_image_id.py Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
011_update_indexes.py
012_add_segment_size.py Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
013_create_timeline_table.py Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
014_event_updates_for_fp.py Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
015_event_refactor.py Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00
016_sublabel_increase.py Add isort and ruff linter (#6575) 2023-05-29 05:31:17 -05:00