Rename DEFAULT_PROJECTS to DEFAULT_PROJECTS_DIRS

This commit is contained in:
Anna Scholtz 2020-09-30 13:58:21 -07:00
Родитель a16bc2824f
Коммит f131c585a5
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -9,7 +9,7 @@ import shutil
from bigquery_etl.util import standard_args from bigquery_etl.util import standard_args
import yaml import yaml
DEFAULT_PROJECTS = ["sql/mozfun/"] DEFAULT_PROJECTS_DIRS = ["sql/mozfun/"]
DOCS_FILE = "README.md" DOCS_FILE = "README.md"
UDF_FILE = "udf.sql" UDF_FILE = "udf.sql"
PROCEDURE_FILE = "stored_procedure.sql" PROCEDURE_FILE = "stored_procedure.sql"
@ -24,7 +24,7 @@ parser.add_argument(
"--project-dirs", "--project-dirs",
help="Directories of projects documentation is generated for.", help="Directories of projects documentation is generated for.",
nargs="+", nargs="+",
default=DEFAULT_PROJECTS, default=DEFAULT_PROJECTS_DIRS,
) )
parser.add_argument( parser.add_argument(
"--docs_dir", "--docs_dir",

Просмотреть файл

@ -10,7 +10,7 @@ from bigquery_etl.dryrun import DryRun
from bigquery_etl.udf.parse_udf import read_udf_dirs, sub_local_routines from bigquery_etl.udf.parse_udf import read_udf_dirs, sub_local_routines
from bigquery_etl.util import standard_args from bigquery_etl.util import standard_args
DEFAULT_PROJECTS = ["sql/mozfun"] DEFAULT_PROJECTS_DIRS = ["sql/mozfun"]
EXAMPLE_DIR = "examples" EXAMPLE_DIR = "examples"
UDF_FILE = "udf.sql" UDF_FILE = "udf.sql"
UDF_CHAR = "[a-zA-z0-9_]" UDF_CHAR = "[a-zA-z0-9_]"
@ -22,7 +22,7 @@ parser.add_argument(
"--project-dirs", "--project-dirs",
help="Directories of projects documentation is validated for.", help="Directories of projects documentation is validated for.",
nargs="+", nargs="+",
default=DEFAULT_PROJECTS, default=DEFAULT_PROJECTS_DIRS,
) )
standard_args.add_log_level(parser) standard_args.add_log_level(parser)