mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Merge pull request #976 from pimutils/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
This commit is contained in:
commit
f3f8eb6824
2 changed files with 3 additions and 5 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v4.1.0
|
rev: v4.2.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
args: [--markdown-linebreak-ext=md]
|
args: [--markdown-linebreak-ext=md]
|
||||||
|
|
@ -23,7 +23,7 @@ repos:
|
||||||
- id: isort
|
- id: isort
|
||||||
name: isort (python)
|
name: isort (python)
|
||||||
- repo: https://github.com/asottile/pyupgrade
|
- repo: https://github.com/asottile/pyupgrade
|
||||||
rev: v2.31.1
|
rev: v2.32.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: pyupgrade
|
- id: pyupgrade
|
||||||
args: [--py37-plus]
|
args: [--py37-plus]
|
||||||
|
|
|
||||||
|
|
@ -82,9 +82,7 @@ def _strategy_command(*command: str, shell: bool = False):
|
||||||
expanded_command = list(map(expand_path, command))
|
expanded_command = list(map(expand_path, command))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
stdout = subprocess.check_output(
|
stdout = subprocess.check_output(expanded_command, text=True, shell=shell)
|
||||||
expanded_command, universal_newlines=True, shell=shell
|
|
||||||
)
|
|
||||||
return stdout.strip("\n")
|
return stdout.strip("\n")
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
cmd = " ".join(expanded_command)
|
cmd = " ".join(expanded_command)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue