Skip to content

Commit

Permalink
[CLI] Remove duplicate sources, bump versions in pre-commit config
Browse files Browse the repository at this point in the history
  • Loading branch information
egeakman committed Feb 8, 2024
1 parent 3642400 commit 7ac5d0e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.9
rev: v0.2.1
hooks:
- id: ruff
- id: ruff-format
Expand All @@ -12,7 +12,7 @@ repos:
- id: isort

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.12.1
rev: 24.1.1
hooks:
- id: black

Expand All @@ -27,11 +27,11 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/tox-dev/pyproject-fmt
rev: 1.5.3
rev: 1.7.0
hooks:
- id: pyproject-fmt

- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.15
rev: v0.16
hooks:
- id: validate-pyproject
1 change: 1 addition & 0 deletions mjpeg_streamer/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def parse_args() -> argparse.Namespace:
args.prefix = re.sub("[^0-9a-zA-Z]+", "_", args.prefix)
args.source: List[Union[int, str],] = [[0]] if args.source is None else args.source
args.source = [item for sublist in args.source for item in sublist]
args.source = list(set(args.source))
return args


Expand Down

0 comments on commit 7ac5d0e

Please sign in to comment.