[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
9
setup.py
9
setup.py
@@ -1,6 +1,7 @@
|
||||
from setuptools import setup, find_packages
|
||||
import re
|
||||
import pathlib
|
||||
import re
|
||||
|
||||
from setuptools import find_packages, setup
|
||||
|
||||
HERE = pathlib.Path(__file__).parent.absolute()
|
||||
PACKAGE = "qibotn"
|
||||
@@ -8,8 +9,8 @@ PACKAGE = "qibotn"
|
||||
|
||||
# Returns the qibotn version
|
||||
def version():
|
||||
"""Gets the version from the package's __init__ file
|
||||
if there is some problem, let it happily fail"""
|
||||
"""Gets the version from the package's __init__ file if there is some
|
||||
problem, let it happily fail."""
|
||||
version_file = HERE / "src" / PACKAGE / "__init__.py"
|
||||
version_regex = r"^__version__ = ['\"]([^'\"]*)['\"]"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user