Skip to content

Commit 347b7c8

Browse files
petercorkeclaude
andcommitted
chore: housekeeping leftovers from the Codacy cleanup
- Delete posegraph.py, a 2020 prototype in the repository root that nothing uses: it imports the deprecated UVertex, has a stub method and debug prints, and needs itertools.pairwise (Python 3.10) in a package that supports 3.9. The Robotics Toolbox has the real PoseGraph. - examples/create_json.py: pop('dgoal', None) instead of a bare except. - Pin the two remaining third-party GitHub Actions to commit SHAs with the version in a comment, as RTB did in petercorke/robotics-toolbox-python#892: codecov/codecov-action v7.1.1 and dependabot/fetch-metadata v3.1.0. They are the commits that @v7 and @V3 point to today, so what runs is unchanged. GitHub's own actions/* stay on tags, and Dependabot updates a pinned SHA with its comment. - Ignore build/ as well as docs/build and dist/. Part of #23. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
1 parent 4e1c1f9 commit 347b7c8

5 files changed

Lines changed: 4 additions & 111 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
pytest --cov=pgraph --cov-report=xml:coverage.xml
7777
coverage report
7878
- name: Upload coverage to Codecov
79-
uses: codecov/codecov-action@v7
79+
uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
8080
with:
8181
files: ./coverage.xml
8282
verbose: true

‎.github/workflows/dependabot-auto-merge.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
steps:
1414
- name: Dependabot metadata
1515
id: metadata
16-
uses: dependabot/fetch-metadata@v3
16+
uses: dependabot/fetch-metadata@25dd0e34f4fe68f24cc83900b1fe3fe149efef98 # v3.1.0
1717
with:
1818
github-token: "${{ secrets.GITHUB_TOKEN }}"
1919

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
build/
12
docs/build
23
dist/
34
*.code-workspace

‎examples/create_json.py‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@
1515
del info['y']
1616
del info['dbne']
1717
del info['utmzone']
18-
try:
19-
del info['dgoal']
20-
except:
21-
pass
18+
info.pop('dgoal', None) # not every place has one
2219
info['utm'] = [info['utm'][0] / 1000, info['utm'][1] / 1000]
2320

2421
routes = []

‎posegraph.py‎

Lines changed: 0 additions & 105 deletions
This file was deleted.

0 commit comments

Comments
 (0)