Skip to content

Commit

Permalink
Merge pull request #799 from RonnyPfannschmidt/pre-commit-upgrade
Browse files Browse the repository at this point in the history
update pre-commit
  • Loading branch information
RonnyPfannschmidt authored Jan 7, 2023
2 parents d769228 + 12cc005 commit b2e4f62
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ default_language_version:
python: python3.9
repos:
- repo: https://github.com/psf/black
rev: 22.10.0
rev: 22.12.0
hooks:
- id: black
args: [--safe, --quiet]
Expand All @@ -12,18 +12,18 @@ repos:
- id: reorder-python-imports
args: [ "--application-directories=.:src" , --py37-plus, --add-import, 'from __future__ import annotations']
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: debug-statements
- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
rev: 6.0.0
hooks:
- id: flake8
- repo: https://github.com/asottile/pyupgrade
rev: v3.2.0
rev: v3.3.1
hooks:
- id: pyupgrade
args: [--py37-plus]
Expand All @@ -33,7 +33,7 @@ repos:
- id: setup-cfg-fmt
args: [ --include-version-classifiers ]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v0.982'
rev: 'v0.991'
hooks:
- id: mypy
args: [--strict]
Expand Down
4 changes: 2 additions & 2 deletions src/setuptools_scm/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ def format_next_version(
self,
guess_next: Callable[Concatenate[ScmVersion, _t.P], str],
fmt: str = "{guessed}.dev{distance}",
*k: _t.P.args, # type: ignore
**kw: _t.P.kwargs, # type: ignore
*k: _t.P.args,
**kw: _t.P.kwargs,
) -> str:
guessed = guess_next(self, *k, **kw)
return self.format_with(fmt, guessed=guessed)
Expand Down

0 comments on commit b2e4f62

Please sign in to comment.