Skip to content

Commit

Permalink
CI: Update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaschke committed Aug 28, 2024
1 parent 1d32ec7 commit 3856f15
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 14 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/doc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v2
uses: actions/configure-pages@v5

- name: Install dependencies
run: |
Expand All @@ -53,7 +53,7 @@ jobs:
source /tmp/ros/devel_isolated/setup.bash
sphinx-build -W -b linkcheck doc _site
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3

# Deployment job
deploy:
Expand All @@ -66,4 +66,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v4
4 changes: 2 additions & 2 deletions .github/workflows/format.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
name: pre-commit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pre-commit/[email protected].0
- uses: actions/checkout@v4
- uses: pre-commit/[email protected].1
id: precommit
- name: Upload pre-commit changes
if: failure() && steps.precommit.outcome == 'failure'
Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
repos:
# Standard hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.6.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
Expand All @@ -31,13 +31,13 @@ repos:

# format code
- repo: https://github.com/psf/black
rev: 22.6.0
rev: 24.8.0
hooks:
- id: black

# remove unused imports
- repo: https://github.com/hadialqattan/pycln
rev: "v2.1.2"
rev: "v2.4.0"
hooks:
- id: pycln
stages: [manual]
Expand All @@ -46,7 +46,7 @@ repos:
# Use tools/codespell_ignore_lines_from_errors.py
# to rebuild .codespell-ignore-lines
- repo: https://github.com/codespell-project/codespell
rev: "v2.2.2"
rev: "v2.3.0"
hooks:
- id: codespell
exclude: xdot.py
2 changes: 1 addition & 1 deletion src/hsm/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ def call_transition_cbs(self, from_state, to_state):
- userdata
- a list of active states
"""
for (cb, args) in self._transition_cbs:
for cb, args in self._transition_cbs:
cb(from_state, to_state, *args)

def dispatch(self, event):
Expand Down
4 changes: 1 addition & 3 deletions src/hsm/viewer/graph_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,7 @@ def get_style(model, item, state=None):
fillcolor = (
GraphView.FILL_ACTIVE
if is_active
else GraphView.FILL_ROOT
if is_root
else GraphView.FILL_INACTIVE
else GraphView.FILL_ROOT if is_root else GraphView.FILL_INACTIVE
)
linewidth = 2 if is_active or is_initial else 1
return color, fillcolor, linewidth
Expand Down

0 comments on commit 3856f15

Please sign in to comment.