File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515
1616# Ignore editor/project-specific folders
1717.idea /
18- .vscode /
1918
2019# Ignore system files
2120.DS_Store
Original file line number Diff line number Diff line change 1+ # VS Code Configuration
2+
3+ Minimal VS Code configuration for the pypylon-samples project.
4+
5+ ## Files
6+
7+ - ** ` settings.json ` ** - Automatically remove trailing whitespace and Ruff formatting
8+ - ** ` extensions.json ` ** - Only Python and Ruff extensions
9+ - ** ` launch.json ` ** - Start pytest and Jupyter Notebook
10+
11+ ## Features
12+
13+ - ** Trailing whitespace** is automatically removed on save
14+ - ** Final newline** is automatically inserted at end of file
15+ - ** Ruff formatting** on save for Python files
16+
17+ ## Extensions
18+
19+ - ** ms-python.python** - Python support
20+ - ** charliermarsh.ruff** - Code formatting
21+
22+ ## Debug Configurations (F5)
23+
24+ - ** Python: pytest** - Run all tests
25+ - ** Python: Jupyter Notebook** - Start Jupyter Notebook server
Original file line number Diff line number Diff line change 1+ {
2+ "recommendations" : [
3+ " ms-python.python" ,
4+ " charliermarsh.ruff"
5+ ]
6+ }
Original file line number Diff line number Diff line change 1+ {
2+ "version" : " 0.2.0" ,
3+ "configurations" : [
4+ {
5+ "name" : " Python: pytest" ,
6+ "type" : " python" ,
7+ "request" : " launch" ,
8+ "module" : " pytest" ,
9+ "args" : [
10+ " tests/" ,
11+ " -v"
12+ ],
13+ "console" : " integratedTerminal"
14+ },
15+ {
16+ "name" : " Python: Jupyter Notebook" ,
17+ "type" : " python" ,
18+ "request" : " launch" ,
19+ "module" : " jupyter" ,
20+ "args" : [
21+ " notebook" ,
22+ " --no-browser"
23+ ],
24+ "console" : " integratedTerminal"
25+ }
26+ ]
27+ }
Original file line number Diff line number Diff line change 1+ {
2+ // Automatically remove trailing whitespace on save
3+ "files.trimTrailingWhitespace" : true ,
4+ // Automatically insert final newline at end of file
5+ "files.insertFinalNewline" : true ,
6+ // Automatically format on save
7+ "editor.formatOnSave" : true ,
8+ // Python formatting with ruff
9+ "[python]" : {
10+ "editor.defaultFormatter" : " charliermarsh.ruff" ,
11+ "editor.formatOnSave" : true
12+ }
13+ }
You can’t perform that action at this time.
0 commit comments