This is an automated email from the ASF dual-hosted git repository.

gcruz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git

commit d75b31713a6ad879611635560dc4b0dbbefa272c
Author: Dave Brondsema <dbronds...@slashdotmedia.com>
AuthorDate: Tue Mar 19 18:08:38 2024 -0400

    [#8539] upgrade ruff
---
 .pre-commit-config.yaml |  2 +-
 requirements.txt        |  2 +-
 ruff.toml               | 10 ++++++----
 3 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 0e3a5168f..7d3eea1f2 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -80,7 +80,7 @@ repos:
 
 - 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 471b477ba..656376a0e 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -201,7 +201,7 @@ requests==2.31.0
     #   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 b2e7c55cb..2bfa1ec9e 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 @@ select = [
     "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 @@ ignore = [
     '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

Reply via email to