gochan-org / gochan

Line too long FLK-E501
Style
Minor
2 months ago2 years old
line too long (127 > 88 characters)
561		from devtools.selenium_testing.runtests import parseArgs, start_tests, close_tests
562		args = parseArgs(parser)
563		try:
564			start_tests(args.browser, args.headless, args.keepopen, args.site, args.board, "html/static/notbanned.png", args.singletest)565		except KeyboardInterrupt:
566			print("Tests interrupted by KeyboardInterrupt, exiting")
567		except Exception:
line too long (91 > 88 characters)
521			action="store_true",
522			help="create symbolic links instead of copying the files (may require admin/root privileges)")
523		args = parser.parse_args()
524		install(args.prefix, args.documentroot, args.symlinks, args.js, args.css, args.templates)525	elif action == "js":
526		parser.add_argument("--watch", "-w",
527			action="store_true",
line too long (97 > 88 characters)
519			help="install files in ./html/ to this directory to be requested by a browser")
520		parser.add_argument("--symlinks",
521			action="store_true",
522			help="create symbolic links instead of copying the files (may require admin/root privileges)")523		args = parser.parse_args()
524		install(args.prefix, args.documentroot, args.symlinks, args.js, args.css, args.templates)
525	elif action == "js":
line too long (100 > 88 characters)
467		set_vars()
468
469	valid_actions = (
470		"build", "clean", "dependencies", "docker", "install", "js", "release", "sass", "test", "selenium"471	)
472	parser = argparse.ArgumentParser(description="gochan build script")
473	parser.add_argument("action", nargs=1, default="build", choices=valid_actions)
line too long (91 > 88 characters)
437
438
439def sass(watch=False):
440	npm_cmd = ["npm", "--prefix", "frontend/", "run", "watch-sass" if watch else "build-sass"]441	status = run_cmd(npm_cmd, True, True, True)[1]
442	if status != 0:
443		print("Failed running sass with status", status)