From 46993770e56f11a6daa0d338d7f4d87a2b43d0c1 Mon Sep 17 00:00:00 2001
From: reivilibre <oliverw@matrix.org>
Date: Wed, 28 Dec 2022 17:23:19 +0000
Subject: [PATCH] Suppress the update check in the ruff linter. (#14741)

* Suppress update check in ruff

* Newsfile

Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org>

Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org>
---
 changelog.d/14741.misc | 1 +
 scripts-dev/lint.sh    | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)
 create mode 100644 changelog.d/14741.misc

diff --git a/changelog.d/14741.misc b/changelog.d/14741.misc
new file mode 100644
index 0000000000..def187b12b
--- /dev/null
+++ b/changelog.d/14741.misc
@@ -0,0 +1 @@
+Use [ruff](https://github.com/charliermarsh/ruff/) instead of flake8.
diff --git a/scripts-dev/lint.sh b/scripts-dev/lint.sh
index f6b81013c3..2bf58ac5d4 100755
--- a/scripts-dev/lint.sh
+++ b/scripts-dev/lint.sh
@@ -104,6 +104,7 @@ set -x
 isort "${files[@]}"
 python3 -m black "${files[@]}"
 ./scripts-dev/config-lint.sh
-ruff "${files[@]}"
+# --quiet suppresses the update check.
+ruff --quiet "${files[@]}"
 ./scripts-dev/check_pydantic_models.py lint
 mypy
-- 
GitLab