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

jscheffl pushed a commit to branch v3-1-test
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/v3-1-test by this push:
     new 132d83cb7e7 [v3-1-test] Replace last pylint usage by ruff rule 
(#57294) (#57307)
132d83cb7e7 is described below

commit 132d83cb7e7d67f23ef2ce89ad184f3b4b552aa4
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Sun Oct 26 19:29:46 2025 +0100

    [v3-1-test] Replace last pylint usage by ruff rule (#57294) (#57307)
    
    (cherry picked from commit 17e9a6db865974403adc385e51c64eec9891a8ed)
    
    Co-authored-by: Jens Scheffler <[email protected]>
---
 .pre-commit-config.yaml | 18 ------------------
 pyproject.toml          |  1 +
 2 files changed, 1 insertion(+), 18 deletions(-)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 639b0f8374c..f4eb511eee1 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -964,24 +964,6 @@ repos:
           - "B101,B301,B324,B403,B404,B603"
           - "--severity-level"
           - "high"  # TODO: remove this line when we fix all the issues
-      - id: pylint
-        name: pylint
-        description: "Pylint is a static code analyser for Python 2 or 3."
-        entry: pylint
-        language: python
-        language_version: python3
-        types: [python]
-        additional_dependencies: ['pylint==3.1.0']
-        require_serial: true
-        files: ^airflow-core/src/airflow/.*
-        exclude:
-          airflow/example_dags/.*
-        args:
-          # Use pylint only for the specific check, which are not available 
into the ruff
-          - "--disable=all"
-          # W0133: "Exception statement has no effect"
-          # see: https://github.com/astral-sh/ruff/issues/10145
-          - "--enable=W0133"
       - id: check-no-fab-migrations
         language: pygrep
         name: Check no migration is done on FAB related table
diff --git a/pyproject.toml b/pyproject.toml
index f7fd21e18c0..d0fba5df9a5 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -619,6 +619,7 @@ extend-select = [
     "RET506", # Unnecessary {branch} after raise statement
     "RET507", # Unnecessary {branch} after continue statement
     "RET508", # Unnecessary {branch} after break statement
+    "PLW0133", # Missing raise statement on exception
 ]
 ignore = [
     "D100", # Unwanted; Docstring at the top of every file.

Reply via email to