[#8539] upgrade ruff
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 0e3a516..7d3eea1 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -80,7 +80,7 @@
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
- rev: v0.1.11
+ rev: v0.3.3
hooks:
- id: ruff
types: [python]
diff --git a/requirements.txt b/requirements.txt
index 471b477..656376a 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -201,7 +201,7 @@
# requests-oauthlib
requests-oauthlib==1.3.1
# via -r requirements.in
-ruff==0.1.13
+ruff==0.3.2
# via -r requirements.in
setproctitle==1.3.3
# via -r requirements.in
diff --git a/ruff.toml b/ruff.toml
index b2e7c55..2bfa1ec 100644
--- a/ruff.toml
+++ b/ruff.toml
@@ -16,10 +16,10 @@
# under the License.
line-length = 119
-show-source = true
+output-format = "full"
target-version = "py38"
-select = [
+lint.select = [
# all flake8 & pep8 (except 'ignore' below)
"F",
"E",
@@ -29,12 +29,14 @@
"ISC001", # NIC001 in flake8 codes
"B",
"PGH", # https://github.com/pre-commit/pygrep-hooks
+ "S307", # eval
+ "G010", # logging.warn
"T10", # debugger breakpoints
"T20", # print()
"FA", # future annotations (to ensure compatibility with `target-version`)
]
-ignore = [
+lint.ignore = [
'F401', # Imported but unused,
'F811', # Redefinition of unused
'F841', # Assigned to but never used
@@ -47,7 +49,7 @@
'B905', # zip(strict=True) would be good, but need to closely evaluate all existing cases first
]
-[per-file-ignores]
+[lint.per-file-ignores]
'__init__.py' = ['F403'] # import *
'**/{alluratest,tests}/*' = [
'B011', # assert False