소스 검색

Apply ruff to setup.py

Kentaro Wada 1 년 전
부모
커밋
7e08806f4d
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      setup.py

+ 1 - 3
setup.py

@@ -12,9 +12,7 @@ from setuptools import setup
 def get_version():
     filename = "labelme/__init__.py"
     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:
         raise RuntimeError("{} doesn't contain __version__".format(filename))
     version = match.groups()[0]