diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a95da729..8f3ef488 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,7 +20,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/psf/black - rev: "22.1.0" + rev: "22.3.0" hooks: - id: black @@ -30,7 +30,7 @@ repos: - id: isort - repo: https://github.com/asottile/pyupgrade - rev: "v2.31.0" + rev: "v2.31.1" hooks: - id: pyupgrade args: ["--py36-plus"] @@ -41,7 +41,7 @@ repos: - id: setup-cfg-fmt - repo: https://github.com/hadialqattan/pycln - rev: v1.1.0 + rev: v1.2.5 hooks: - id: pycln args: [--config=pyproject.toml] @@ -55,7 +55,7 @@ repos: additional_dependencies: [flake8-bugbear, flake8-print, flake8-2020] - repo: https://github.com/pre-commit/mirrors-mypy - rev: "v0.931" + rev: "v0.942" hooks: - id: mypy files: plumbum @@ -64,7 +64,7 @@ repos: # This wants the .mo files removed - repo: https://github.com/mgedmin/check-manifest - rev: "0.47" + rev: "0.48" hooks: - id: check-manifest stages: [manual] diff --git a/plumbum/cli/application.py b/plumbum/cli/application.py index f5e98393..fa523031 100644 --- a/plumbum/cli/application.py +++ b/plumbum/cli/application.py @@ -889,7 +889,7 @@ def switchs(by_groups, show_groups): lgrp = T_(grp) if grp in _switch_groups else grp print(self.COLOR_GROUP_TITLES[grp] | lgrp + ":") - for si in sorted(swinfos, key=lambda si: si.names): + for si in sorted(swinfos, key=lambda x: x.names): swnames = ", ".join( ("-" if len(n) == 1 else "--") + n for n in si.names