Last active
February 10, 2017 05:08
-
-
Save probe301/f4dcc4dea2abc2f355e8030e9a70423d to your computer and use it in GitHub Desktop.
Sublime Setting and Plugin Config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 自己调试好的 Plugin Packages (folder or *.sublime-package)可以放在 | |
| # C:\Users\**\AppData\Roaming\Sublime Text 3\Packages | |
| # 路径下, 该路径里还有个 User 文件夹 | |
| # 需要把下面两项设为 false, 否则 Sublime 更新时会给删掉 | |
| ''' | |
| // If missing packages should be automatically installed when ST starts | |
| "install_missing": true, | |
| // If a package was installed by Package Control (has a | |
| // package-metadata.json file) but is not in installed_packages, remove it | |
| // based upon the assumption that it was removed on another machine and | |
| // the Package Control.sublime-settings file was synced to this machine. | |
| "remove_orphaned": true, | |
| ''' | |
| # 具体哪个起作用了, 我也不知道 | |
| # Python Checker | |
| DEFAULT_IGNORE = 'E111,E121,E123,E221,E226,E24,E301,E261,E302,E303,W391,W292' | |
| # PythonTest | |
| TEST_FUNC_RE = re.compile(r'(\s*)def\s+(_?(test_|exec_|todo_)\w+)\s?\(') | |
| TEST_CASE_RE = re.compile(r'(\s*)class\s+(Test\w+)') | |
| TB_FILE = r'[ ]*File \"(...*?)\", line ([0-9]*)' | |
| [ | |
| { | |
| "keys": ["ctrl+."], "command": "run_python_test", | |
| "context": [{"key": "selector", "operator": "equal", "operand": "source.python"}] | |
| },{ | |
| "keys": ["alt+."], "command": "run_last_python_test", | |
| "context": [{"key": "selector", "operator": "equal", "operand": "source.python"}] | |
| },{ | |
| "keys": ["ctrl+k", "t"], "command": "run_python_project_tests", | |
| "context": [{"key": "selector", "operator": "equal", "operand": "source.python"}] | |
| },{ | |
| "keys": ["f6"], "command": "run_python_test", | |
| "context": [{"key": "selector", "operator": "equal", "operand": "source.python"}] | |
| },{ | |
| "keys": ["f5"], "command": "run_last_python_test", | |
| "context": [{"key": "selector", "operator": "equal", "operand": "source.python"}] | |
| }, | |
| ] | |
| [ | |
| {"caption": "PythonTest: Run selected tests", "command": "run_python_test"}, | |
| {"caption": "PythonTest: Run last test", "command": "run_last_python_test"}, | |
| {"caption": "PythonTest: Run project tests", "command": "run_python_project_tests"} | |
| ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment