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

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-04-13 00:00:18 +00:00
parent 72ad6dc953
commit f4cd1ba0d6
813 changed files with 66015 additions and 58839 deletions

View file

@ -1,5 +1,7 @@
# PYTHON_ARGCOMPLETE_OK
"""pytest: unit and functional testing with Python."""
from __future__ import annotations
from _pytest import __version__
from _pytest import version_tuple
from _pytest._code import ExceptionInfo
@ -86,84 +88,84 @@ set_trace = __pytestPDB.set_trace
__all__ = [
"__version__",
"approx",
"Cache",
"CallInfo",
"CaptureFixture",
"Class",
"cmdline",
"Collector",
"CollectReport",
"Config",
"console_main",
"deprecated_call",
"Dir",
"Directory",
"DoctestItem",
"exit",
"ExceptionInfo",
"ExitCode",
"fail",
"File",
"fixture",
"FixtureDef",
"FixtureLookupError",
"FixtureRequest",
"freeze_includes",
"Function",
"hookimpl",
"HookRecorder",
"hookspec",
"importorskip",
"Item",
"LineMatcher",
"LogCaptureFixture",
"main",
"mark",
"Mark",
"MarkDecorator",
"MarkGenerator",
"Metafunc",
"Module",
"MonkeyPatch",
"OptionGroup",
"Package",
"param",
"Parser",
"PytestAssertRewriteWarning",
"PytestCacheWarning",
"PytestCollectionWarning",
"PytestConfigWarning",
"PytestDeprecationWarning",
"PytestExperimentalApiWarning",
"PytestRemovedIn9Warning",
"PytestReturnNotNoneWarning",
"Pytester",
"PytestPluginManager",
"PytestUnhandledCoroutineWarning",
"PytestUnhandledThreadExceptionWarning",
"PytestUnknownMarkWarning",
"PytestUnraisableExceptionWarning",
"PytestWarning",
"raises",
"RecordedHookCall",
"register_assert_rewrite",
"RunResult",
"Session",
"set_trace",
"skip",
"Stash",
"StashKey",
"version_tuple",
"TempdirFactory",
"TempPathFactory",
"Testdir",
"TestReport",
"TestShortLogReport",
"UsageError",
"WarningsRecorder",
"warns",
"xfail",
"yield_fixture",
'__version__',
'approx',
'Cache',
'CallInfo',
'CaptureFixture',
'Class',
'cmdline',
'Collector',
'CollectReport',
'Config',
'console_main',
'deprecated_call',
'Dir',
'Directory',
'DoctestItem',
'exit',
'ExceptionInfo',
'ExitCode',
'fail',
'File',
'fixture',
'FixtureDef',
'FixtureLookupError',
'FixtureRequest',
'freeze_includes',
'Function',
'hookimpl',
'HookRecorder',
'hookspec',
'importorskip',
'Item',
'LineMatcher',
'LogCaptureFixture',
'main',
'mark',
'Mark',
'MarkDecorator',
'MarkGenerator',
'Metafunc',
'Module',
'MonkeyPatch',
'OptionGroup',
'Package',
'param',
'Parser',
'PytestAssertRewriteWarning',
'PytestCacheWarning',
'PytestCollectionWarning',
'PytestConfigWarning',
'PytestDeprecationWarning',
'PytestExperimentalApiWarning',
'PytestRemovedIn9Warning',
'PytestReturnNotNoneWarning',
'Pytester',
'PytestPluginManager',
'PytestUnhandledCoroutineWarning',
'PytestUnhandledThreadExceptionWarning',
'PytestUnknownMarkWarning',
'PytestUnraisableExceptionWarning',
'PytestWarning',
'raises',
'RecordedHookCall',
'register_assert_rewrite',
'RunResult',
'Session',
'set_trace',
'skip',
'Stash',
'StashKey',
'version_tuple',
'TempdirFactory',
'TempPathFactory',
'Testdir',
'TestReport',
'TestShortLogReport',
'UsageError',
'WarningsRecorder',
'warns',
'xfail',
'yield_fixture',
]

View file

@ -1,7 +1,8 @@
"""The pytest entry point."""
from __future__ import annotations
import pytest
if __name__ == "__main__":
if __name__ == '__main__':
raise SystemExit(pytest.console_main())