mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +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
|
||||
- ~ Key marked with a ? means the option is optional
|
||||
- (name):
|
||||
disabled?: whether to disable this language
|
||||
compile?: Compile Command
|
||||
code_file?: Where to write code file when compiling
|
||||
execute?: Command to execute the program
|
||||
code_file?: Where to write code file when compiling, defaults to `foo.[name]`
|
||||
execute: Command to execute the program
|
||||
highlight?: PrismJS highlight mode
|
||||
monaco?: Monaco editor mode
|
||||
time_limit_rate: Time limit rate
|
||||
target: Compiler output file
|
||||
time_limit_rate?: Time limit rate
|
||||
target?: Compiler output file, defaults to `foo`
|
||||
display: Display name
|
||||
compile_time_limit?: Compile time limit, in milliseconds
|
||||
bash:
|
||||
display: Bash
|
||||
code_file: foo.sh
|
||||
@@ -92,6 +94,7 @@ langs:
|
||||
highlight: java astyle-java
|
||||
monaco: java
|
||||
display: Java
|
||||
compile_time_limit: 30000
|
||||
kt:
|
||||
compile: echo "Invalid language selection"
|
||||
code_file: foo.kt
|
||||
@@ -114,6 +117,7 @@ langs:
|
||||
display: Python
|
||||
py.py2:
|
||||
display: Python 2
|
||||
disabled: true
|
||||
py.py3:
|
||||
compile: /usr/bin/python3 -c "import py_compile; py_compile.compile('/w/foo.py', '/w/foo', doraise=True)"
|
||||
execute: /usr/bin/python3 foo
|
||||
|
||||
Reference in new issue
Block a user