From 8b757139ef2409c7295b291a13bff2827d125c74 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Mon, 13 Feb 2023 19:35:11 +0100 Subject: [PATCH] Fix ruff --- .pre-commit-config.yaml | 2 +- src/charasheet/settings.py | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 797b78a..69c88aa 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -45,7 +45,7 @@ repos: hooks: - id: djhtml - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: 'v0.0.243' + rev: 'v0.0.246' hooks: - id: ruff args: [--fix] diff --git a/src/charasheet/settings.py b/src/charasheet/settings.py index 674ea39..4644050 100644 --- a/src/charasheet/settings.py +++ b/src/charasheet/settings.py @@ -249,15 +249,15 @@ APP = { try: with Path("/app/git/build-date").open() as f: APP["build"]["date"] = f.read().strip() -except Exception: - pass # noqa: S110 +except Exception: # noqa: S110 + pass try: with Path("/app/git/git-commit").open() as f: APP["build"]["commit"] = f.read().strip() -except Exception: - pass # noqa: S110 +except Exception: # noqa: S110 + pass try: with Path("/app/git/git-describe").open() as f: APP["build"]["describe"] = f.read().strip() -except Exception: - pass # noqa: S110 +except Exception: # noqa: S110 + pass