diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a4d1086dd..551140d68 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ repos: hooks: - id: isort - repo: https://github.com/asottile/pyupgrade - rev: v3.3.1 + rev: v3.9.0 hooks: - id: pyupgrade args: [--py38-plus] @@ -20,7 +20,7 @@ repos: additional_dependencies: - flake8-pytest-style - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.2.0 + rev: v1.4.1 hooks: - id: mypy # Avoid error: Duplicate module named 'setup' @@ -40,7 +40,7 @@ repos: args: [--ini, .bandit] exclude: ^tests/ - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.0.0-alpha.9-for-vscode + rev: v3.0.0 hooks: - id: prettier additional_dependencies: diff --git a/piptools/utils.py b/piptools/utils.py index 3fe0ec9b9..3065fee63 100644 --- a/piptools/utils.py +++ b/piptools/utils.py @@ -177,7 +177,7 @@ def format_specifier(ireq: InstallRequirement) -> str: specs = ireq.specifier if ireq.req is not None else SpecifierSet() # FIXME: remove ignore type marker once the following issue get fixed # https://github.com/python/mypy/issues/9656 - specs = sorted(specs, key=lambda x: x.version) # type: ignore + specs = sorted(specs, key=lambda x: x.version) return ",".join(str(s) for s in specs) or ""