Skip to content

Commit a47b629

Browse files
committed
Replace last pylint usage by ruff rule
1 parent 0d66178 commit a47b629

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,24 +1044,6 @@ repos:
10441044
- "B101,B301,B324,B403,B404,B603"
10451045
- "--severity-level"
10461046
- "high" # TODO: remove this line when we fix all the issues
1047-
- id: pylint
1048-
name: pylint
1049-
description: "Pylint is a static code analyser for Python 2 or 3."
1050-
entry: pylint
1051-
language: python
1052-
language_version: python3
1053-
types: [python]
1054-
additional_dependencies: ['pylint==3.1.0']
1055-
require_serial: true
1056-
files: ^airflow-core/src/airflow/.*
1057-
exclude:
1058-
airflow/example_dags/.*
1059-
args:
1060-
# Use pylint only for the specific check, which are not available into the ruff
1061-
- "--disable=all"
1062-
# W0133: "Exception statement has no effect"
1063-
# see: https://github.com/astral-sh/ruff/issues/10145
1064-
- "--enable=W0133"
10651047
- id: check-no-fab-migrations
10661048
language: pygrep
10671049
name: Check no migration is done on FAB related table

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,7 @@ extend-select = [
619619
"RET506", # Unnecessary {branch} after raise statement
620620
"RET507", # Unnecessary {branch} after continue statement
621621
"RET508", # Unnecessary {branch} after break statement
622+
"PLW0133", # Missing raise statement on exception
622623
]
623624
ignore = [
624625
"D100", # Unwanted; Docstring at the top of every file.

0 commit comments

Comments
 (0)