2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-09 16:36:25 +00:00

style: Pre-commit linters

This commit is contained in:
Gavin D'souza 2023-01-24 15:26:32 +05:30
parent 3f9360bc42
commit 044d646ec5

View File

@ -81,7 +81,7 @@ def write_to_env(
) -> None: ) -> None:
site_name = site or "" site_name = site or ""
example_env = get_from_env(wd, "example.env") example_env = get_from_env(wd, "example.env")
erpnext_version = erpnext_version or example_env['ERPNEXT_VERSION'] erpnext_version = erpnext_version or example_env["ERPNEXT_VERSION"]
with open(os.path.join(wd, ".env"), "w") as f: with open(os.path.join(wd, ".env"), "w") as f:
f.writelines( f.writelines(
[ [
@ -312,7 +312,9 @@ if __name__ == "__main__":
parser.add_argument( parser.add_argument(
"--email", help="Add email for the SSL.", required="--prod" in sys.argv "--email", help="Add email for the SSL.", required="--prod" in sys.argv
) )
parser.add_argument("-v", "--version", help="ERPNext version to install, defaults to latest stable") parser.add_argument(
"-v", "--version", help="ERPNext version to install, defaults to latest stable"
)
args = parser.parse_args() args = parser.parse_args()
if args.dev: if args.dev:
cprint("\nSetting Up Development Instance\n", level=2) cprint("\nSetting Up Development Instance\n", level=2)