Skip to content

Commit

Permalink
pre-commit autoupdate (#1859)
Browse files Browse the repository at this point in the history
updates:
- [github.com/asottile/pyupgrade: v3.3.1 → v3.9.0](asottile/pyupgrade@v3.3.1...v3.9.0)
- [github.com/pre-commit/mirrors-mypy: v1.2.0 → v1.4.1](pre-commit/mirrors-mypy@v1.2.0...v1.4.1)
- [github.com/pre-commit/mirrors-prettier: v3.0.0-alpha.9-for-vscode → v3.0.0](pre-commit/mirrors-prettier@v3.0.0-alpha.9-for-vscode...v3.0.0)

---------

Co-authored-by: Albert Tugushev <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and atugushev authored Jul 15, 2023
1 parent 60ac79b commit ca3ef6a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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'
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion piptools/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 "<any>"


Expand Down

0 comments on commit ca3ef6a

Please sign in to comment.