Skip to content

Commit 923a53b

Browse files
committed
Update project settings + rules
1 parent 1ff57c0 commit 923a53b

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

.cursor/rules/app_size_analyzer.mdc renamed to .cursor/rules/launchpad.mdc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ This is a Python CLI tool for analyzing iOS and Android app bundle sizes, simila
2626
- Use `lief` for Mach-O binary analysis
2727
- Virtual environment managed via `.venv/`
2828
- Use `| None` instead of `Optional`
29+
- When writing comments try to keep them short and informative
2930

3031
### Code Quality
3132
- Always include type hints
@@ -36,7 +37,8 @@ This is a Python CLI tool for analyzing iOS and Android app bundle sizes, simila
3637
### Testing
3738
- Unit tests in `tests/unit/`
3839
- Integration tests in `tests/integration/`
39-
- Use sample artifacts from `tests/artifacts/`
40+
- Use sample artifacts from `tests/_fixtures/`
41+
- Prefer to write integration tests using test fixtures over unit tests with mocking. Try to avoid mocking as much as possible.
4042
- Prefer pytest fixtures for setup
4143

4244
### CLI Development

.vscode/launch.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"version": "0.2.0",
23
"configurations": [
34
{
45
"type": "swift",
@@ -20,8 +21,9 @@
2021
},
2122
{
2223
"name": "Python: Debug Tests",
23-
"type": "python",
24+
"type": "debugpy",
2425
"request": "launch",
26+
"python": "${workspaceFolder}/.venv/bin/python",
2527
"module": "pytest",
2628
"args": [
2729
"${workspaceFolder}/tests",
@@ -37,8 +39,9 @@
3739
},
3840
{
3941
"name": "Python: Debug Current Test File",
40-
"type": "python",
42+
"type": "debugpy",
4143
"request": "launch",
44+
"python": "${workspaceFolder}/.venv/bin/python",
4245
"module": "pytest",
4346
"args": [
4447
"${file}",
@@ -54,8 +57,9 @@
5457
},
5558
{
5659
"name": "Python: Debug Current Test Method",
57-
"type": "python",
60+
"type": "debugpy",
5861
"request": "launch",
62+
"python": "${workspaceFolder}/.venv/bin/python",
5963
"module": "pytest",
6064
"args": [
6165
"${file}::${selectedText}",

launchpad.code-workspace

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"folders": [
33
{
4-
"name": "app-size-analyzer",
4+
"name": "launchpad",
55
"path": "."
66
}
77
],

0 commit comments

Comments
 (0)