diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2d08f61ec..3ec8d2e81 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -27,3 +27,4 @@ repos: additional_dependencies: - types-PyYAML==6.0.1 - types-requests==2.26.0 + - types-setuptools==57.4.2 diff --git a/requirements-lint.txt b/requirements-lint.txt index 18132b45b..08ba6dc38 100644 --- a/requirements-lint.txt +++ b/requirements-lint.txt @@ -4,3 +4,4 @@ isort==5.10.1 mypy==0.910 types-PyYAML==6.0.1 types-requests==2.26.0 +types-setuptools==57.4.2 diff --git a/setup.py b/setup.py index 95d60c87c..afc7555d2 100644 --- a/setup.py +++ b/setup.py @@ -4,11 +4,14 @@ from setuptools import find_packages, setup -def get_version(): +def get_version() -> str: + version = "" with open("gitlab/__version__.py") as f: for line in f: if line.startswith("__version__"): - return eval(line.split("=")[-1]) + version = eval(line.split("=")[-1]) + break + return version with open("README.rst", "r") as readme_file:
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: