File tree Expand file tree Collapse file tree 3 files changed +626
-0
lines changed Expand file tree Collapse file tree 3 files changed +626
-0
lines changed Original file line number Diff line number Diff line change @@ -951,6 +951,28 @@ def string_lower_type(val):
951
951
help = "The section name" ,
952
952
)
953
953
954
+ # config lint
955
+ ARG_LINT_CONFIG_SECTION = Arg (
956
+ ("--section" ,),
957
+ help = "The section name(s) to lint in the airflow config." ,
958
+ type = string_list_type ,
959
+ )
960
+ ARG_LINT_CONFIG_OPTION = Arg (
961
+ ("--option" ,),
962
+ help = "The option name(s) to lint in the airflow config." ,
963
+ type = string_list_type ,
964
+ )
965
+ ARG_LINT_CONFIG_IGNORE_SECTION = Arg (
966
+ ("--ignore-section" ,),
967
+ help = "The section name(s) to ignore to lint in the airflow config." ,
968
+ type = string_list_type ,
969
+ )
970
+ ARG_LINT_CONFIG_IGNORE_OPTION = Arg (
971
+ ("--ignore-option" ,),
972
+ help = "The option name(s) to ignore to lint in the airflow config." ,
973
+ type = string_list_type ,
974
+ )
975
+
954
976
# kubernetes cleanup-pods
955
977
ARG_NAMESPACE = Arg (
956
978
("--namespace" ,),
@@ -1869,6 +1891,18 @@ class GroupCommand(NamedTuple):
1869
1891
ARG_VERBOSE ,
1870
1892
),
1871
1893
),
1894
+ ActionCommand (
1895
+ name = "lint" ,
1896
+ help = "lint options for the configuration changes while migrating from Airflow 2.x to Airflow 3.0" ,
1897
+ func = lazy_load_command ("airflow.cli.commands.remote_commands.config_command.lint_config" ),
1898
+ args = (
1899
+ ARG_LINT_CONFIG_SECTION ,
1900
+ ARG_LINT_CONFIG_OPTION ,
1901
+ ARG_LINT_CONFIG_IGNORE_SECTION ,
1902
+ ARG_LINT_CONFIG_IGNORE_OPTION ,
1903
+ ARG_VERBOSE ,
1904
+ ),
1905
+ ),
1872
1906
)
1873
1907
1874
1908
KUBERNETES_COMMANDS = (
You can’t perform that action at this time.
0 commit comments