This is an automated email from the ASF dual-hosted git repository.
kaxilnaik 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 ad766ddd4e Bump ``ruff`` to ``0.7.0`` (#43286)
ad766ddd4e is described below
commit ad766ddd4ea5d00e1b88b8037ab1d6564b545d69
Author: Kaxil Naik <[email protected]>
AuthorDate: Wed Oct 23 01:39:18 2024 +0100
Bump ``ruff`` to ``0.7.0`` (#43286)
https://pypi.org/project/ruff/#history
---
.pre-commit-config.yaml | 4 +--
dev/stats/explore_pr_candidates.ipynb | 38 +++++++++++-----------
hatch_build.py | 2 +-
.../tests/system/papermill/input_notebook.ipynb | 2 +-
pyproject.toml | 1 +
5 files changed, 24 insertions(+), 23 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index cc8c987ff2..caad954c2e 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -354,7 +354,7 @@ repos:
types_or: [python, pyi]
args: [--fix]
require_serial: true
- additional_dependencies: ["ruff==0.5.5"]
+ additional_dependencies: ["ruff==0.7.0"]
exclude:
^.*/.*_vendor/|^tests/dags/test_imports.py|^performance/tests/test_.*.py
- id: ruff-format
name: Run 'ruff format'
@@ -364,7 +364,7 @@ repos:
types_or: [python, pyi]
args: []
require_serial: true
- additional_dependencies: ["ruff==0.5.5"]
+ additional_dependencies: ["ruff==0.7.0"]
exclude: ^.*/.*_vendor/|^tests/dags/test_imports.py$
- id: replace-bad-characters
name: Replace bad characters
diff --git a/dev/stats/explore_pr_candidates.ipynb
b/dev/stats/explore_pr_candidates.ipynb
index ead9e977f9..afae804ebb 100644
--- a/dev/stats/explore_pr_candidates.ipynb
+++ b/dev/stats/explore_pr_candidates.ipynb
@@ -19,7 +19,7 @@
"metadata": {},
"outputs": [],
"source": [
- "file = open(\"prlist\",\"rb\") # open the pickled file\n",
+ "file = open(\"prlist\", \"rb\") # open the pickled file\n",
"selected_prs = pickle.load(file)"
]
},
@@ -33,26 +33,26 @@
"\n",
"for pr_stat in selected_prs:\n",
" data = {\n",
- " 'number': [pr_stat.pull_request.number],\n",
- " 'url': [pr_stat.pull_request.html_url],\n",
- " 'title': [pr_stat.pull_request.title],\n",
- " 'overall_score': [pr_stat.score],\n",
- " 'label_score': [pr_stat.label_score],\n",
- " 'length_score': [pr_stat.length_score],\n",
- " 'body_length': [pr_stat.body_length],\n",
- " 'comment_length': [pr_stat.comment_length],\n",
- " 'interaction_score': [pr_stat.interaction_score],\n",
- " 'comments': [pr_stat.num_comments],\n",
- " 'reactions': [pr_stat.num_reactions],\n",
- " 'reviews': [pr_stat.num_reviews],\n",
- " 'num_interacting_users': [pr_stat.num_interacting_users],\n",
- " 'change_score': [pr_stat.change_score],\n",
- " 'additions': [pr_stat.num_additions],\n",
- " 'deletions': [pr_stat.num_deletions],\n",
- " 'num_changed_files': [pr_stat.num_changed_files],\n",
+ " \"number\": [pr_stat.pull_request.number],\n",
+ " \"url\": [pr_stat.pull_request.html_url],\n",
+ " \"title\": [pr_stat.pull_request.title],\n",
+ " \"overall_score\": [pr_stat.score],\n",
+ " \"label_score\": [pr_stat.label_score],\n",
+ " \"length_score\": [pr_stat.length_score],\n",
+ " \"body_length\": [pr_stat.body_length],\n",
+ " \"comment_length\": [pr_stat.comment_length],\n",
+ " \"interaction_score\": [pr_stat.interaction_score],\n",
+ " \"comments\": [pr_stat.num_comments],\n",
+ " \"reactions\": [pr_stat.num_reactions],\n",
+ " \"reviews\": [pr_stat.num_reviews],\n",
+ " \"num_interacting_users\": [pr_stat.num_interacting_users],\n",
+ " \"change_score\": [pr_stat.change_score],\n",
+ " \"additions\": [pr_stat.num_additions],\n",
+ " \"deletions\": [pr_stat.num_deletions],\n",
+ " \"num_changed_files\": [pr_stat.num_changed_files],\n",
" }\n",
" df = pd.DataFrame(data)\n",
- " rows = pd.concat([df, rows]).reset_index(drop = True)"
+ " rows = pd.concat([df, rows]).reset_index(drop=True)"
]
},
{
diff --git a/hatch_build.py b/hatch_build.py
index 0e2e82026b..1b8d4fd6f6 100644
--- a/hatch_build.py
+++ b/hatch_build.py
@@ -243,7 +243,7 @@ DEVEL_EXTRAS: dict[str, list[str]] = {
"astunparse>=1.6.3; python_version < '3.9'",
"black>=23.12.0",
"pre-commit>=3.5.0",
- "ruff==0.5.5",
+ "ruff==0.7.0",
"yamllint>=1.33.0",
],
"devel-tests": [
diff --git a/providers/tests/system/papermill/input_notebook.ipynb
b/providers/tests/system/papermill/input_notebook.ipynb
index e985432160..60190c1a74 100644
--- a/providers/tests/system/papermill/input_notebook.ipynb
+++ b/providers/tests/system/papermill/input_notebook.ipynb
@@ -93,7 +93,7 @@
}
],
"source": [
- "sb.glue('message', msgs)"
+ "sb.glue(\"message\", msgs)"
]
}
],
diff --git a/pyproject.toml b/pyproject.toml
index 5557d68882..3eb574c92c 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -317,6 +317,7 @@ ignore = [
"COM812",
"COM819",
"E501", # Formatted code may exceed the line length, leading to
line-too-long (E501) errors.
+ "ASYNC110", # TODO: Use `anyio.Event` instead of awaiting `anyio.sleep` in
a `while` loop
]
unfixable = [
# PT022 replace empty `yield` to empty `return`. Might be fixed with a
combination of PLR1711