summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2023-03-03 07:13:03 -0500
committerGitHub <noreply@github.com>2023-03-03 07:13:03 -0500
commit7ae4f7236a0873e490c7f5dc5d69f3b922818cb4 (patch)
tree3eef00ad36d3be3bd1f4c4269cb1c2e432705cd2
parentExperimental MSC3890 Implementation: Fix deleting account data when using an ... (diff)
downloadsynapse-7ae4f7236a0873e490c7f5dc5d69f3b922818cb4.tar.xz
Configure ruff to automatically fix issues. (#15194)
-rw-r--r--changelog.d/15194.misc1
-rwxr-xr-xscripts-dev/lint.sh2
2 files changed, 2 insertions, 1 deletions
diff --git a/changelog.d/15194.misc b/changelog.d/15194.misc
new file mode 100644
index 0000000000..931bf5448a
--- /dev/null
+++ b/changelog.d/15194.misc
@@ -0,0 +1 @@
+Automatically fix errors with `ruff`.
diff --git a/scripts-dev/lint.sh b/scripts-dev/lint.sh
index 392c509a8a..9e4ed3246e 100755
--- a/scripts-dev/lint.sh
+++ b/scripts-dev/lint.sh
@@ -112,7 +112,7 @@ python3 -m black "${files[@]}"
 
 # Catch any common programming mistakes in Python code.
 # --quiet suppresses the update check.
-ruff --quiet "${files[@]}"
+ruff --quiet --fix "${files[@]}"
 
 # Catch any common programming mistakes in Rust code.
 #