chore: Run pre-commit on all files

This commit is contained in:
Alessandro Candido
2024-02-07 11:21:27 +01:00
parent c3a4a544b5
commit e496f9f156
10 changed files with 92 additions and 72 deletions

View File

@@ -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__ = ['\"]([^'\"]*)['\"]"