You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2022/01/30 12:49:03 UTC

[airflow] branch main updated: Fixed Tuple required in most recent black version (#21215)

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 889bcc1  Fixed Tuple required in most recent black version (#21215)
889bcc1 is described below

commit 889bcc17178ee74c1e966164bc4a60952467310c
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Sun Jan 30 13:48:31 2022 +0100

    Fixed Tuple required in most recent black version (#21215)
    
    The 22.1.0 release of Black as of 29 Jan 2022 requires Tuple
    in target_version_option_callback.
---
 scripts/ci/pre_commit/pre_commit_check_pre_commit_hook_names.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/ci/pre_commit/pre_commit_check_pre_commit_hook_names.py b/scripts/ci/pre_commit/pre_commit_check_pre_commit_hook_names.py
index 67940fd..17847eb 100755
--- a/scripts/ci/pre_commit/pre_commit_check_pre_commit_hook_names.py
+++ b/scripts/ci/pre_commit/pre_commit_check_pre_commit_hook_names.py
@@ -128,7 +128,7 @@ def black_mode():
     config = parse_pyproject_toml(Path(get_breeze_pyproject_toml_dir(), "pyproject.toml"))
 
     target_versions = set(
-        target_version_option_callback(None, None, config.get('target_version', [])),
+        target_version_option_callback(None, None, config.get('target_version', ())),
     )
 
     return Mode(