Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#687)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 21.12b0 → 22.1.0](psf/black@21.12b0...22.1.0)
- [github.com/asottile/reorder_python_imports: v2.6.0 → v2.7.1](asottile/reorder-python-imports@v2.6.0...v2.7.1)
- [github.com/Lucas-C/pre-commit-hooks: v1.1.10 → v1.1.11](Lucas-C/pre-commit-hooks@v1.1.10...v1.1.11)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Antoni Ivanov <aivanov@vmware.com>
  • Loading branch information
pre-commit-ci[bot] and antoniivanov authored Feb 1, 2022
1 parent 86dd875 commit a7b7691
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 @@ -16,7 +16,7 @@ repos:
- id: trailing-whitespace
- id: check-executables-have-shebangs
- repo: https://github.com/psf/black
rev: 21.12b0
rev: 22.1.0
hooks:
- id: black
language_version: python3.7
Expand All @@ -39,7 +39,7 @@ repos:
# - id: mypy
# files: ^(src/|tests/|plugins/)
- repo: https://github.com/asottile/reorder_python_imports
rev: v2.6.0
rev: v2.7.1
hooks:
- id: reorder-python-imports
args: [--py37-plus, '--application-directories=.:src']
Expand All @@ -58,7 +58,7 @@ repos:
# args: [ -s, B101 ]
# add copyright notice
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.10
rev: v1.1.11
hooks:
- id: insert-license
files: \.java$
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def _get_highest_version_from_index(self) -> tuple:
)
return (-1,)

pattr = fr">{self.pkg}-(.+?)<"
pattr = rf">{self.pkg}-(.+?)<"
versions = map(
self._ver_to_tuple,
re.findall(pattr, response.read().decode("utf-8"), flags=re.I),
Expand Down

0 comments on commit a7b7691

Please sign in to comment.