Browse Source

Apply ruff to setup.py

Kentaro Wada 1 năm trước cách đây
mục cha
commit
7e08806f4d
1 tập tin đã thay đổi với 1 bổ sung3 xóa
  1. 1 3
      setup.py

+ 1 - 3
setup.py

@@ -12,9 +12,7 @@ from setuptools import setup
 def get_version():
 def get_version():
     filename = "labelme/__init__.py"
     filename = "labelme/__init__.py"
     with open(filename) as f:
     with open(filename) as f:
-        match = re.search(
-            r"""^__version__ = ['"]([^'"]*)['"]""", f.read(), re.M
-        )
+        match = re.search(r"""^__version__ = ['"]([^'"]*)['"]""", f.read(), re.M)
     if not match:
     if not match:
         raise RuntimeError("{} doesn't contain __version__".format(filename))
         raise RuntimeError("{} doesn't contain __version__".format(filename))
     version = match.groups()[0]
     version = match.groups()[0]