Skip to content

Commit 26b16c9

Browse files
authored
Pin ruff to specific version and prevent from "fixing" cli conftest (apache#29040)
New Ruff release started to "fix" our cli conftest cofiguration, leading to mypy complaining about the changed line. This change prevents ruff from "fixing" the line as well as pins ruff to latest released version so that any future changes are applied deliberately when we upgrade.
1 parent 6c50a69 commit 26b16c9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ repos:
172172
# Since ruff makes use of multiple cores we _purposefully_ don't run this in docker so it can use the
173173
# host CPU to it's fullest
174174
entry: ruff --fix --no-update-check --force-exclude
175-
additional_dependencies: ['ruff>=0.0.219']
175+
additional_dependencies: ['ruff==0.0.226']
176176
files: \.pyi?$
177177
exclude: ^airflow/_vendor/
178178
- repo: https://github.com/psf/black

tests/cli/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
from tests.test_utils.config import conf_vars
2828

2929
# Create custom executors here because conftest is imported first
30-
custom_executor_module = type(sys)("custom_executor")
30+
custom_executor_module = type(sys)("custom_executor") # noqa
3131
custom_executor_module.CustomCeleryExecutor = type( # type: ignore
3232
"CustomCeleryExecutor", (celery_executor.CeleryExecutor,), {}
3333
)

0 commit comments

Comments
 (0)