Target py38 for ruff (#15585)

diff --git a/pyproject.toml b/pyproject.toml
index 1fc52df..67201ac 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -27,7 +27,7 @@
 
 [tool.ruff]
 line-length = 99
-target-version = "py37"
+target-version = "py38"
 fix = true
 
 select = [