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 <[email protected]>
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(

Reply via email to