Skip to content

Commit d9796bf

Browse files
author
zhenwei-li
committed
Merge branch 'feature' into feature_com.dvsnier.process
2 parents 5333f66 + 6f52b24 commit d9796bf

24 files changed

Lines changed: 1072 additions & 244 deletions

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ venv.bak/
108108

109109
# vscode files
110110
.vscode/
111-
.vscode/settings.json
111+
# .vscode/settings.json
112112

113113
# IDEA files
114114
.idea/

.rmcache.bash

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env bash
2+
3+
### THE DELETE FILES
4+
find . -type f -name '*.pyc' -delete
5+
6+
### THE DELETE DIRECTORY
7+
## .tox/*
8+
find .tox -path "*" -delete
9+
## ./build/*
10+
find ./build -path "*" ! -name "build" -delete
11+
## ./src/com.dvsnier.*.egg-info
12+
find ./src -path "*com.dvsnier*" -delete
13+
# find ./src -path "*com.dvsnier.*" -type d -exec rm -r {} +
14+
# find ./src -path "*com.dvsnier.*" -type f -delete
15+
## ./dist/*
16+
find ./dist -path "*" ! -name "dist" -delete
17+
## ./out/log/*
18+
find ./out/log -path "*" ! -name "log" -delete
19+
## __pycache__
20+
find . -type d -name __pycache__ -exec rm -r {} +

.rmcache.ps1

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#
2+
# the airticle link reference:
3+
#
4+
# 1. https://docs.microsoft.com/zh-cn/powershell/scripting/samples/working-with-files-and-folders?view=powershell-7.1
5+
# 2. https://docs.microsoft.com/zh-cn/powershell/scripting/samples/working-with-registry-keys?view=powershell-7.1
6+
#
7+
8+
### THE DELETE FILES
9+
Get-ChildItem -Path . -include *.pyc -Recurse | Remove-Item
10+
11+
### THE DELETE DIRECTORY
12+
## .tox/*
13+
Remove-Item -Path .\.tox -Recurse
14+
## ./build/*
15+
Remove-Item -Path .\build\* -Recurse
16+
## ./src/com.dvsnier.*.egg-info
17+
Remove-Item -Path .\src\com.dvsnier.*.egg-info -Recurse
18+
# Get-ChildItem -Path .\src\com.dvsnier.*.egg-info -Recurse
19+
## ./dist/*
20+
Remove-Item -Path .\dist\* -Recurse
21+
## ./out/log/*
22+
Remove-Item -Path .\out\log\* -Recurse
23+
## __pycache__
24+
Get-ChildItem -Path . -include __pycache__ -Recurse | Remove-Item

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"version": "0.2.0",
66
"configurations": [
77
{
8-
"name": "Python Debug",
8+
"name": "Python: 当前文件",
99
"type": "python",
1010
"request": "launch",
1111
"program": "${file}",

.vscode/settings.json

100755100644
Lines changed: 79 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1,102 +1,101 @@
11
{
2-
"editor.tabSize": 4,
3-
"editor.detectIndentation": false,
4-
// "debug.toolBarLocation": "docked",
5-
"editor.suggestSelection": "first",
6-
"editor.fontSize": 14,
7-
"editor.formatOnSave": true,
8-
"editor.formatOnType": true,
9-
"editor.wordWrapColumn": 250,
10-
"editor.columnSelection": false,
11-
"editor.mouseWheelZoom": false,
12-
"explorer.confirmDelete": false,
13-
"editor.renderWhitespace": "all",
14-
"editor.renderControlCharacters": true,
15-
"editor.suggest.shareSuggestSelections": true,
16-
"editor.renderIndentGuides": false,
17-
"debug.console.fontSize": 14,
18-
"git.autofetch": true,
19-
"[json]": {
20-
"editor.defaultFormatter": "HookyQR.beautify"
2+
"[python]": {
3+
"editor.defaultFormatter": "ms-python.python"
214
},
22-
"[jsonc]": {
23-
"editor.defaultFormatter": "HookyQR.beautify"
24-
},
25-
"terminal.integrated.fontSize": 14,
26-
"markdown.extension.toc.githubCompatibility": true,
27-
"markdownlint.config": {
28-
"MD033": false,
29-
"MD034": false,
30-
},
31-
"markdown.extension.katex.macros": {},
32-
"markdown.extension.toc.levels": "2..6",
33-
"markdown-pdf.highlightStyle": "github.css",
34-
// "markdown-pdf.headerTemplate":"<div style=\"font-size: 9px; margin-left: 1cm;\"> <span class='title'></span></div> <div style=\"font-size: 9px; margin-left: auto; margin-right: 1cm; \"> <span class='date'></span></div>",
35-
"markdown-pdf.headerTemplate": "<div></div>",
36-
"terminal.integrated.copyOnSelection": true,
37-
// "files.autoSave": "afterDelay",
38-
"files.insertFinalNewline": true,
39-
"files.autoGuessEncoding": true,
40-
"files.exclude": {
41-
"**/.git": true,
42-
"**/.svn": true,
43-
"**/.hg": true,
44-
"**/CVS": true,
45-
"**/.DS_Store": true,
46-
"**/*.pyc": true
47-
},
48-
"python.analysis.extraPaths": [
49-
"./src",
50-
"./mock",
51-
"./test",
52-
"./venv2/bin",
53-
"./venv2/Lib/python2.7/site-packages"
54-
],
5+
// "python.analysis.extraPaths": [
6+
// "./src",
7+
// "./mock",
8+
// "./test",
9+
// // darwin
10+
// "./venv2/bin",
11+
// "./venv2/lib/python2.7/site-packages",
12+
// "./venv/bin",
13+
// "./venv/lib/python3.7/site-packages",
14+
// // win32
15+
// "./venv2/Scripts",
16+
// "./venv2/Lib/site-packages",
17+
// "./venv/Scripts",
18+
// "./venv/Lib/site-packages",
19+
// ],
5520
"python.analysis.logLevel": "Trace",
56-
"python.analysis.watchSearchPaths": true,
57-
"python.autoComplete.extraPaths": [
58-
"./src",
59-
"./mock",
60-
"./tests",
61-
"./venv2/bin",
62-
"./venv2/Lib/python2.7/site-packages",
63-
// "./venv/bin",
64-
// "./venv/Lib/python3.7/site-packages",
65-
],
21+
// "python.analysis.watchSearchPaths": true,
22+
"python.analysis.typeCheckingMode": "basic",
23+
// "python.analysis.typeCheckingMode": "strict",
24+
"python.analysis.diagnosticMode": "openFilesOnly",
25+
// https://github.com/microsoft/pylance-release/blob/main/DIAGNOSTIC_SEVERITY_RULES.md
26+
"python.analysis.diagnosticSeverityOverrides": {},
27+
"python.analysis.useLibraryCodeForTypes": true,
28+
"python.analysis.autoImportCompletions": true,
29+
"python.autoComplete.addBrackets": true,
30+
"python.analysis.completeFunctionParens": true,
31+
// "python.autoComplete.addBrackets": false,
32+
// "python.analysis.completeFunctionParens": false,
33+
// https://marketplace.visualstudio.com/items?itemName=ms-python.vscode-pylance#settings-and-customization
34+
// "python.autoComplete.extraPaths": [
35+
// "./src",
36+
// "./mock",
37+
// "./tests",
38+
// // darwin
39+
// "./venv2/bin",
40+
// "./venv2/lib/python2.7/site-packages",
41+
// "./venv/bin",
42+
// "./venv/lib/python3.7/site-packages",
43+
// // win32
44+
// "./venv2/Scripts",
45+
// "./venv2/Lib/site-packages",
46+
// "./venv/Scripts",
47+
// "./venv/Lib/site-packages",
48+
// ],
49+
// "python.autoUpdateLanguageServer": true,
50+
// "python.defaultInterpreterPath": "${workspaceFolder}/venv2/bin/python",
51+
// "python.defaultInterpreterPath": "venv2/bin/python",
52+
// "python.diagnostics.sourceMapsEnabled": true,
6653
"python.envFile": "${workspaceFolder}/.env",
67-
"python.pythonPath": "venv2/bin/python",
54+
// "python.pythonPath": "${workspaceFolder}/venv2/bin/python",
55+
// "python.pythonPath": "venv2/bin/python",
56+
// "python.pythonPath": "venv2\\Scripts\\python.exe",
6857
"python.formatting.provider": "yapf",
58+
// "python.formatting.yapfArgs": [
59+
// "--style",
60+
// "{based_on_style: pep8, indent_width: 4}"
61+
// ],
6962
"python.formatting.yapfArgs": [
70-
"--style", "{based_on_style: pep8 ,indent_width: 4, column_limit: 130}",
63+
"--style",
64+
"{based_on_style: pep8 ,indent_width: 4, column_limit: 120}",
7165
],
7266
// "python.languageServer": "Jedi",
7367
"python.languageServer": "Pylance",
7468
// "python.languageServer": "Microsoft",
69+
// "python.logging.level": "info",
7570
"python.linting.enabled": true,
7671
"python.linting.flake8Enabled": true,
7772
"python.linting.flake8Args": [
78-
"--max-line-length=250",
79-
"--ignore=E251",
73+
"--max-line-length=140",
74+
// "--ignore=E251",
8075
"--verbose",
8176
],
82-
"python.linting.ignorePatterns": [".vscode/*.py", "**/site-packages/**/*.py"],
77+
"python.linting.ignorePatterns": [
78+
".vscode/*.py",
79+
"**/site-packages/**/*.py"
80+
],
8381
"python.linting.lintOnSave": true,
8482
"python.linting.pylintEnabled": false,
85-
"python.testing.unittestArgs": [
86-
"-v",
87-
"-s",
88-
"./tests",
89-
"-p",
90-
"test_*.py"
91-
],
92-
"python.testing.autoTestDiscoverOnSaveEnabled": true,
83+
// https://github.com/microsoft/vscode-python/discussions/15997#discussioncomment-636389
84+
// "python.testing.unittestArgs": [
85+
// "-v",
86+
// "-s",
87+
// "./tests",
88+
// "-p",
89+
// "test_*.py"
90+
// ],
91+
// "python.testing.autoTestDiscoverOnSaveEnabled": true,
9392
"python.testing.cwd": "${workspaceFolder}",
9493
"python.testing.nosetestsEnabled": false,
9594
"python.testing.pytestEnabled": false,
96-
"python.testing.promptToConfigure": true,
95+
"python.testing.promptToConfigure": false,
9796
"python.testing.unittestEnabled": true,
98-
"workbench.iconTheme": "vscode-icons",
99-
"workbench.editor.enablePreview": true,
100-
"workbench.editor.enablePreviewFromQuickOpen": true,
101-
"window.zoomLevel": 0,
97+
// "workbench.settings.openDefaultSettings": true,
98+
// "workbench.settings.editor": "ui",
99+
// "workbench.settings.openDefaultKeybindings": true,
100+
// "workbench.settings.useSplitJSON": true,
102101
}

0 commit comments

Comments
 (0)