This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 26b16c9d1f Pin ruff to specific version and prevent from "fixing" cli
conftest (#29040)
26b16c9d1f is described below
commit 26b16c9d1f2012e98f5985a057e8bf61b874db1a
Author: Jarek Potiuk <[email protected]>
AuthorDate: Thu Jan 19 16:37:25 2023 +0100
Pin ruff to specific version and prevent from "fixing" cli conftest (#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.
---
.pre-commit-config.yaml | 2 +-
tests/cli/conftest.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 9b81fffeba..dc019590f7 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -172,7 +172,7 @@ repos:
# Since ruff makes use of multiple cores we _purposefully_ don't run
this in docker so it can use the
# host CPU to it's fullest
entry: ruff --fix --no-update-check --force-exclude
- additional_dependencies: ['ruff>=0.0.219']
+ additional_dependencies: ['ruff==0.0.226']
files: \.pyi?$
exclude: ^airflow/_vendor/
- repo: https://github.com/psf/black
diff --git a/tests/cli/conftest.py b/tests/cli/conftest.py
index 0a0e2ec5cb..9a9f7c0415 100644
--- a/tests/cli/conftest.py
+++ b/tests/cli/conftest.py
@@ -27,7 +27,7 @@ from airflow.executors import celery_executor,
celery_kubernetes_executor
from tests.test_utils.config import conf_vars
# Create custom executors here because conftest is imported first
-custom_executor_module = type(sys)("custom_executor")
+custom_executor_module = type(sys)("custom_executor") # noqa
custom_executor_module.CustomCeleryExecutor = type( # type: ignore
"CustomCeleryExecutor", (celery_executor.CeleryExecutor,), {}
)