Enable flake8-bugbear linting rules (#267)

See https://docs.astral.sh/ruff/rules/#flake8-bugbear-b.
This commit is contained in:
Marc Wrobel
2023-12-30 10:03:55 +01:00
parent 26f8db809c
commit 0e8fe135e4
13 changed files with 19 additions and 21 deletions

View File

@@ -20,7 +20,7 @@ class Git:
child = run(f"git {cmd}", capture_output=True, timeout=300, check=True, shell=True, cwd=self.repo_dir)
return child.stdout.decode("utf-8").strip().split("\n")
except ChildProcessError as ex:
raise RuntimeError(f"Failed to run '{cmd}': {ex}")
raise RuntimeError(f"Failed to run '{cmd}': {ex}") from ex
def setup(self, bare: bool = False):
"""Creates the repository path and runs: