Skip to content

Commit e8cfc41

Browse files
committed
Merge branch 'developer' into deploy
2 parents 61caa99 + 62728c3 commit e8cfc41

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1100
-605
lines changed

.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: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
// 使用 IntelliSense 了解相关属性。
3+
// 悬停以查看现有属性的描述。
4+
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Python: 当前文件",
9+
"type": "python",
10+
"request": "launch",
11+
"program": "${file}",
12+
"console": "integratedTerminal"
13+
}
14+
]
15+
}

.vscode/settings.json

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
{
2+
"[python]": {
3+
"editor.defaultFormatter": "ms-python.python"
4+
},
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+
// ],
20+
"python.analysis.logLevel": "Trace",
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,
53+
"python.envFile": "${workspaceFolder}/.env",
54+
// "python.pythonPath": "${workspaceFolder}/venv2/bin/python",
55+
// "python.pythonPath": "venv2/bin/python",
56+
// "python.pythonPath": "venv2\\Scripts\\python.exe",
57+
"python.formatting.provider": "yapf",
58+
// "python.formatting.yapfArgs": [
59+
// "--style",
60+
// "{based_on_style: pep8, indent_width: 4}"
61+
// ],
62+
"python.formatting.yapfArgs": [
63+
"--style",
64+
"{based_on_style: pep8 ,indent_width: 4, column_limit: 120}",
65+
],
66+
// "python.languageServer": "Jedi",
67+
"python.languageServer": "Pylance",
68+
// "python.languageServer": "Microsoft",
69+
// "python.logging.level": "info",
70+
"python.linting.enabled": true,
71+
"python.linting.flake8Enabled": true,
72+
"python.linting.flake8Args": [
73+
"--max-line-length=140",
74+
// "--ignore=E251",
75+
"--verbose",
76+
],
77+
"python.linting.ignorePatterns": [
78+
".vscode/*.py",
79+
"**/site-packages/**/*.py"
80+
],
81+
"python.linting.lintOnSave": true,
82+
"python.linting.pylintEnabled": false,
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,
92+
"python.testing.cwd": "${workspaceFolder}",
93+
"python.testing.nosetestsEnabled": false,
94+
"python.testing.pytestEnabled": false,
95+
"python.testing.promptToConfigure": false,
96+
"python.testing.unittestEnabled": true,
97+
// "workbench.settings.openDefaultSettings": true,
98+
// "workbench.settings.editor": "ui",
99+
// "workbench.settings.openDefaultKeybindings": true,
100+
// "workbench.settings.useSplitJSON": true,
101+
}

0 commit comments

Comments
 (0)