File tree 3 files changed +18
-6
lines changed
3 files changed +18
-6
lines changed Original file line number Diff line number Diff line change
1
+ .vscode /settings.json filter =removeFullHomePath
Original file line number Diff line number Diff line change 191
191
192
192
// Tell the ROS extension where to find the setup.bash
193
193
// This also utilizes the COLCON_WS environment variable, which needs to be set
194
- "ros.rosSetupScript" : " ${env:COLCON_WS}/install/setup.bash" ,
195
194
"ros.distro" : " iron" ,
196
195
"search.useIgnoreFiles" : false ,
196
+ "python.autoComplete.extraPaths" : [
197
+ " /opt/ros/iron/lib/python3.10/site-packages"
198
+ ],
199
+ "python.analysis.extraPaths" : [
200
+ " /opt/ros/iron/lib/python3.10/site-packages"
201
+ ],
202
+
197
203
198
- // DO NOT COMMIT THESE ABSOLUTE PYTHON PATHS:
199
-
200
204
201
205
}
Original file line number Diff line number Diff line change 1
- .PHONY : basler install install-no-root pip pre-commit format pull-all pull-init pull-repos pull-files fresh-libs remove-libs setup-libs rosdep status update update-no-root
1
+ .PHONY : basler install install-no-root pip pre-commit install-git-filters format pull-all pull-init pull-repos pull-files fresh-libs remove-libs setup-libs rosdep status update update-no-root
2
2
3
3
HTTPS := ""
4
4
REPO: =$(dir $(abspath $(firstword $(MAKEFILE_LIST ) ) ) )
@@ -19,6 +19,13 @@ pre-commit:
19
19
# Install pre-commit hooks for all submodules that have a .pre-commit-config.yaml file
20
20
pre-commit install
21
21
22
+ install-git-filters :
23
+ # Install git filters
24
+ # The vscode settings file gets updated by the ros extension and contains the full path to the current user's home directory.
25
+ # We don't want to commit this path, so we use a git filter to remove it when git adds the file to the staging area.
26
+ # This does not affect the file on disk, so vscode will still work as expected.
27
+ git config filter.removeFullHomePath.clean " sed '/\/home.*\(install\|build\)/d'"
28
+
22
29
format :
23
30
# Format all files in the repository
24
31
pre-commit run --all-files
@@ -78,6 +85,6 @@ status:
78
85
# Show status of all repositories
79
86
vcs status . --nested
80
87
81
- update : pull-all rosdep pip pre-commit
88
+ update : pull-all rosdep pip install-git-filters pre-commit
82
89
83
- update-no-root : pull-all pip pre-commit
90
+ update-no-root : pull-all pip install-git-filters pre-commit
You can’t perform that action at this time.
0 commit comments