Jelajahi Sumber

Configure ruff to automatically fix issues. (#15194)

Patrick Cloke 1 tahun lalu
induk
melakukan
7ae4f7236a
2 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 1 0
      changelog.d/15194.misc
  2. 1 1
      scripts-dev/lint.sh

+ 1 - 0
changelog.d/15194.misc

@@ -0,0 +1 @@
+Automatically fix errors with `ruff`.

+ 1 - 1
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.
 #