Skip to content

Commit 7ac5d0e

Browse files
committed
[CLI] Remove duplicate sources, bump versions in pre-commit config
1 parent 3642400 commit 7ac5d0e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.1.9
3+
rev: v0.2.1
44
hooks:
55
- id: ruff
66
- id: ruff-format
@@ -12,7 +12,7 @@ repos:
1212
- id: isort
1313

1414
- repo: https://github.com/psf/black-pre-commit-mirror
15-
rev: 23.12.1
15+
rev: 24.1.1
1616
hooks:
1717
- id: black
1818

@@ -27,11 +27,11 @@ repos:
2727
- id: trailing-whitespace
2828

2929
- repo: https://github.com/tox-dev/pyproject-fmt
30-
rev: 1.5.3
30+
rev: 1.7.0
3131
hooks:
3232
- id: pyproject-fmt
3333

3434
- repo: https://github.com/abravalheri/validate-pyproject
35-
rev: v0.15
35+
rev: v0.16
3636
hooks:
3737
- id: validate-pyproject

mjpeg_streamer/cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def parse_args() -> argparse.Namespace:
3636
args.prefix = re.sub("[^0-9a-zA-Z]+", "_", args.prefix)
3737
args.source: List[Union[int, str],] = [[0]] if args.source is None else args.source
3838
args.source = [item for sublist in args.source for item in sublist]
39+
args.source = list(set(args.source))
3940
return args
4041

4142

0 commit comments

Comments
 (0)