[8.0.x] Replace reorder-python-imports by isort due to black incompatibility (#11898)

Backport of #11896
This commit is contained in:
Bruno Oliveira
2024-01-31 09:08:36 -03:00
committed by GitHub
parent a76aa6ff80
commit 06e592370e
84 changed files with 175 additions and 149 deletions

View File

@@ -1,8 +1,10 @@
"""Generate an executable with pytest runner embedded using PyInstaller."""
if __name__ == "__main__":
import pytest
import subprocess
import pytest
hidden = []
for x in pytest.freeze_includes():
hidden.extend(["--hidden-import", x])

View File

@@ -5,6 +5,7 @@ pytest main().
if __name__ == "__main__":
import sys
import pytest
sys.exit(pytest.main())

View File

@@ -2,6 +2,7 @@
Called by tox.ini: uses the generated executable to run the tests in ./tests/
directory.
"""
if __name__ == "__main__":
import os
import sys