mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: langs: mark python2 as disabled
This commit is contained in:
1 file changed
+8
-4
@@ -32,14 +32,16 @@ langs:
|
|||||||
- ~ Compiling be be ignored if compile option wasn't set
|
- ~ Compiling be be ignored if compile option wasn't set
|
||||||
- ~ Key marked with a ? means the option is optional
|
- ~ Key marked with a ? means the option is optional
|
||||||
- (name):
|
- (name):
|
||||||
|
disabled?: whether to disable this language
|
||||||
compile?: Compile Command
|
compile?: Compile Command
|
||||||
code_file?: Where to write code file when compiling
|
code_file?: Where to write code file when compiling, defaults to `foo.[name]`
|
||||||
execute?: Command to execute the program
|
execute: Command to execute the program
|
||||||
highlight?: PrismJS highlight mode
|
highlight?: PrismJS highlight mode
|
||||||
monaco?: Monaco editor mode
|
monaco?: Monaco editor mode
|
||||||
time_limit_rate: Time limit rate
|
time_limit_rate?: Time limit rate
|
||||||
target: Compiler output file
|
target?: Compiler output file, defaults to `foo`
|
||||||
display: Display name
|
display: Display name
|
||||||
|
compile_time_limit?: Compile time limit, in milliseconds
|
||||||
bash:
|
bash:
|
||||||
display: Bash
|
display: Bash
|
||||||
code_file: foo.sh
|
code_file: foo.sh
|
||||||
@@ -92,6 +94,7 @@ langs:
|
|||||||
highlight: java astyle-java
|
highlight: java astyle-java
|
||||||
monaco: java
|
monaco: java
|
||||||
display: Java
|
display: Java
|
||||||
|
compile_time_limit: 30000
|
||||||
kt:
|
kt:
|
||||||
compile: echo "Invalid language selection"
|
compile: echo "Invalid language selection"
|
||||||
code_file: foo.kt
|
code_file: foo.kt
|
||||||
@@ -114,6 +117,7 @@ langs:
|
|||||||
display: Python
|
display: Python
|
||||||
py.py2:
|
py.py2:
|
||||||
display: Python 2
|
display: Python 2
|
||||||
|
disabled: true
|
||||||
py.py3:
|
py.py3:
|
||||||
compile: /usr/bin/python3 -c "import py_compile; py_compile.compile('/w/foo.py', '/w/foo', doraise=True)"
|
compile: /usr/bin/python3 -c "import py_compile; py_compile.compile('/w/foo.py', '/w/foo', doraise=True)"
|
||||||
execute: /usr/bin/python3 foo
|
execute: /usr/bin/python3 foo
|
||||||
|
|||||||
Reference in new issue
Block a user