Skip to content

Commit

Permalink
Merge pull request #29 from BrainLesion/autoformat
Browse files Browse the repository at this point in the history
Autoformat
  • Loading branch information
MarcelRosier authored Dec 19, 2023
2 parents f47c318 + 85ce258 commit 97fb89e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/autoformat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,16 @@ jobs:
src: "."
jupyter: true

- name: Generate token
id: generate_token
uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92
with:
app_id: ${{ secrets.BOT_APP_ID }}
private_key: ${{ secrets.BOT_APP_PRIVATE_KEY }}

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Autoformat with black"
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
2 changes: 1 addition & 1 deletion ereg/functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def registration_function(
float: The structural similarity index.
"""
if isinstance(config_file, str):
assert os.path.isfile(config_file), "Config file does not exist."
assert os.path.isfile(config_file), 'Config file does not exist.'
elif isinstance(config_file, dict):
pass
else:
Expand Down

0 comments on commit 97fb89e

Please sign in to comment.