From cf8d4df77e3f78fa5d783c7bd6c56145d3fd6f50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Loipf=C3=BChrer?= Date: Sat, 26 Aug 2023 20:33:16 +0200 Subject: [PATCH] fix: linters and formatting --- docs/conf.py | 4 ---- pyproject.toml | 4 ++-- tools/build_debian_packages.py | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 8680cb58..1be28672 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -15,10 +15,6 @@ import sys from pathlib import Path -import pydantic -import yaml -from pydantic.fields import FieldInfo - HERE = Path(__file__).parent sys.path[:0] = [str(HERE.parent), str(HERE / "_ext")] BUILD_DIR = HERE / "_build" diff --git a/pyproject.toml b/pyproject.toml index c2c49e91..c47a3dcf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,9 +41,9 @@ test = [ ] dev = [ "black", - "mypy~=0.991", + "mypy~=1.5", "types-PyYAML~=6.0", - "pylint~=2.15", + "pylint~=2.17", ] docs = [ "sphinx", diff --git a/tools/build_debian_packages.py b/tools/build_debian_packages.py index 1c4aac77..ee9331a4 100755 --- a/tools/build_debian_packages.py +++ b/tools/build_debian_packages.py @@ -57,7 +57,7 @@ def run_build(self, dist: str, skip_tests=False): if self._failed: print("not building %s due to earlier failure" % (dist,)) - raise Exception("failed") + raise RuntimeError("failed") try: self._inner_build(dist, skip_tests)