Skip to content

Commit 977af22

Browse files
committed
add vscode settings
1 parent fcd0928 commit 977af22

5 files changed

Lines changed: 71 additions & 1 deletion

File tree

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ env/
1515

1616
# Ignore editor/project-specific folders
1717
.idea/
18-
.vscode/
1918

2019
# Ignore system files
2120
.DS_Store

.vscode/README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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

.vscode/extensions.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"recommendations": [
3+
"ms-python.python",
4+
"charliermarsh.ruff"
5+
]
6+
}

.vscode/launch.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+
}

.vscode/settings.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+
}

0 commit comments

Comments
 (0)