mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-08-03 11:46:22 -07:00
Fix some deepsource Python style complaints
This commit is contained in:
parent
e55d00adb2
commit
f443617966
2 changed files with 11 additions and 8 deletions
6
build.py
6
build.py
|
@ -158,7 +158,8 @@ def build(debugging=False):
|
||||||
print("Building for", gcos)
|
print("Building for", gcos)
|
||||||
build_cmd += gcflags + ldflags
|
build_cmd += gcflags + ldflags
|
||||||
|
|
||||||
status = run_cmd(build_cmd + " -o " + gochan_exe + " ./cmd/gochan",
|
status = run_cmd(
|
||||||
|
build_cmd + " -o " + gochan_exe + " ./cmd/gochan",
|
||||||
realtime=True, print_command=True)[1]
|
realtime=True, print_command=True)[1]
|
||||||
if status != 0:
|
if status != 0:
|
||||||
print("Failed building gochan, see command output for details")
|
print("Failed building gochan, see command output for details")
|
||||||
|
@ -357,7 +358,8 @@ if __name__ == "__main__":
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print("Received keyboard interrupt, exiting")
|
print("Received keyboard interrupt, exiting")
|
||||||
elif action == "install":
|
elif action == "install":
|
||||||
parser.add_argument("--js",
|
parser.add_argument(
|
||||||
|
"--js",
|
||||||
action="store_true",
|
action="store_true",
|
||||||
help="only install JavaScript (useful for frontend development)")
|
help="only install JavaScript (useful for frontend development)")
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
|
|
|
@ -11,7 +11,8 @@ class macro():
|
||||||
|
|
||||||
# macros
|
# macros
|
||||||
macros = [
|
macros = [
|
||||||
macro("serial pk","BIGSERIAL PRIMARY KEY",
|
macro(
|
||||||
|
"serial pk","BIGSERIAL PRIMARY KEY",
|
||||||
"BIGINT NOT NULL AUTO_INCREMENT UNIQUE PRIMARY KEY"),
|
"BIGINT NOT NULL AUTO_INCREMENT UNIQUE PRIMARY KEY"),
|
||||||
macro("fk to serial", "BIGINT", "BIGINT"),
|
macro("fk to serial", "BIGINT", "BIGINT"),
|
||||||
macro("drop fk", "DROP CONSTRAINT", "DROP FOREIGN KEY")
|
macro("drop fk", "DROP CONSTRAINT", "DROP FOREIGN KEY")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue