Merge pull request #9374 from pytest-dev/pre-commit-ci-update-config

[pre-commit.ci] pre-commit autoupdate
This commit is contained in:
Ran Benita 2021-12-07 11:20:28 +02:00 committed by GitHub
commit ef76c28ea2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 1 additions and 5 deletions

View File

@ -1,6 +1,6 @@
repos:
- repo: https://github.com/psf/black
rev: 21.11b1
rev: 21.12b0
hooks:
- id: black
args: [--safe, --quiet]

View File

@ -108,7 +108,6 @@ if os.environ.get("_ARGCOMPLETE"):
def try_argcomplete(parser: argparse.ArgumentParser) -> None:
argcomplete.autocomplete(parser, always_complete_options=False)
else:
def try_argcomplete(parser: argparse.ArgumentParser) -> None:

View File

@ -324,7 +324,6 @@ if sys.platform == "win32":
return False
return True
else:
def _write_pyc(

View File

@ -192,7 +192,6 @@ if sys.version_info < (3, 7):
def nullcontext():
yield
else:
from contextlib import nullcontext as nullcontext # noqa: F401

View File

@ -562,7 +562,6 @@ if sys.platform.startswith("win"):
def _is_same(f1: str, f2: str) -> bool:
return Path(f1) == Path(f2) or os.path.samefile(f1, f2)
else:
def _is_same(f1: str, f2: str) -> bool: