mirror of
https://github.com/Crocmagnon/charasheet.git
synced 2024-11-22 22:48:03 +01:00
Fix ruff
This commit is contained in:
parent
0182273e99
commit
8b757139ef
2 changed files with 7 additions and 7 deletions
|
@ -45,7 +45,7 @@ repos:
|
||||||
hooks:
|
hooks:
|
||||||
- id: djhtml
|
- id: djhtml
|
||||||
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
||||||
rev: 'v0.0.243'
|
rev: 'v0.0.246'
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff
|
- id: ruff
|
||||||
args: [--fix]
|
args: [--fix]
|
||||||
|
|
|
@ -249,15 +249,15 @@ APP = {
|
||||||
try:
|
try:
|
||||||
with Path("/app/git/build-date").open() as f:
|
with Path("/app/git/build-date").open() as f:
|
||||||
APP["build"]["date"] = f.read().strip()
|
APP["build"]["date"] = f.read().strip()
|
||||||
except Exception:
|
except Exception: # noqa: S110
|
||||||
pass # noqa: S110
|
pass
|
||||||
try:
|
try:
|
||||||
with Path("/app/git/git-commit").open() as f:
|
with Path("/app/git/git-commit").open() as f:
|
||||||
APP["build"]["commit"] = f.read().strip()
|
APP["build"]["commit"] = f.read().strip()
|
||||||
except Exception:
|
except Exception: # noqa: S110
|
||||||
pass # noqa: S110
|
pass
|
||||||
try:
|
try:
|
||||||
with Path("/app/git/git-describe").open() as f:
|
with Path("/app/git/git-describe").open() as f:
|
||||||
APP["build"]["describe"] = f.read().strip()
|
APP["build"]["describe"] = f.read().strip()
|
||||||
except Exception:
|
except Exception: # noqa: S110
|
||||||
pass # noqa: S110
|
pass
|
||||||
|
|
Loading…
Reference in a new issue