summary refs log tree commit diff
diff options
context:
space:
mode:
authorreivilibre <oliverw@matrix.org>2022-12-28 17:23:19 +0000
committerGitHub <noreply@github.com>2022-12-28 17:23:19 +0000
commit46993770e56f11a6daa0d338d7f4d87a2b43d0c1 (patch)
tree1e27838c5891001f313fcc4cd433becfab11562e
parentBroken link "request_id_header" (#14740) (diff)
downloadsynapse-46993770e56f11a6daa0d338d7f4d87a2b43d0c1.tar.xz
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>
-rw-r--r--changelog.d/14741.misc1
-rwxr-xr-xscripts-dev/lint.sh3
2 files changed, 3 insertions, 1 deletions
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