From 024c7fa440a1d208e3783f9d2720f08aaa314fa5 Mon Sep 17 00:00:00 2001 From: byliu Date: Sun, 17 Jul 2022 19:34:30 +0800 Subject: [PATCH 1/2] tag:vscode --- .vscode/launch.json | 16 ++++++++++++++++ .vscode/settings.json | 12 ++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 .vscode/launch.json create mode 100644 .vscode/settings.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..306f58e --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,16 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Python: Current File", + "type": "python", + "request": "launch", + "program": "${file}", + "console": "integratedTerminal", + "justMyCode": true + } + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..533f74f --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,12 @@ +{ + "python.testing.unittestArgs": [ + "-v", + "-s", + "./tests", + "-p", + "*test.py", + "test*.py", + ], + "python.testing.pytestEnabled": true, + "python.testing.unittestEnabled": false +} \ No newline at end of file From 575ef8ec172a417bde3b9034d7ad27e78d2089b5 Mon Sep 17 00:00:00 2001 From: by liu Date: Mon, 18 Jul 2022 12:50:39 +0800 Subject: [PATCH 2/2] add vscode env and ignore *_cache folder --- .gitignore | 1 + .vscode/linux.env | 4 ++++ .vscode/windows.env | 4 ++++ 3 files changed, 9 insertions(+) create mode 100644 .vscode/linux.env create mode 100644 .vscode/windows.env diff --git a/.gitignore b/.gitignore index b680166..08229e8 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ sandbox/ # Byte-compiled / optimized / DLL files __pycache__/ +*_cache/ *.py[cod] *$py.class diff --git a/.vscode/linux.env b/.vscode/linux.env new file mode 100644 index 0000000..3781571 --- /dev/null +++ b/.vscode/linux.env @@ -0,0 +1,4 @@ +# linux +PYTHONPATH = "/home/postgres/dhca/pyeit:/home/postgres/dhca/eitmesh:/home/postgres/dhca/pydhca" +# Jupyter: run all cells +# ctrl + alt + r diff --git a/.vscode/windows.env b/.vscode/windows.env new file mode 100644 index 0000000..ba939b4 --- /dev/null +++ b/.vscode/windows.env @@ -0,0 +1,4 @@ +# windows +PYTHONPATH = "D:/dhca/pyeit;D:/dhca/eitmesh;D:/dhca/pydhca" +# Jupyter: run all cells +# ctrl + alt + r