from re import match
from subprocess import run
from shutil import which
-from unittest import TestCase, skipUnless
+from unittest import main, TestCase, skipUnless
black_version = 0.0
try:
self.fail(
f"black exited with code {output.returncode}:\n{output.stderr.decode()}"
)
+
+
+if __name__ == "__main__":
+ main()
from pkg_resources import get_distribution, DistributionNotFound
from subprocess import call
from shutil import which
-from unittest import skipUnless, TestCase
+from unittest import main, skipUnless, TestCase
mypy_version = 0.0
try:
"test",
]
self.assertEqual(call(cmd), 0, "mypy typecheck")
+
+
+if __name__ == "__main__":
+ main()