Skip to content

Commit

Permalink
DX: run requirements workflow on comment (#42)
Browse files Browse the repository at this point in the history
* DX: update `organizeImports` VSCode setting
  • Loading branch information
redeboer authored Dec 10, 2023
1 parent 2d94192 commit 1842e0a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ jobs:
if: >-
github.event_name == 'schedule' ||
github.event_name == 'workflow_dispatch' ||
github.event.pull_request.head.repo.full_name == github.repository
github.event.pull_request.head.repo.full_name == github.repository ||
(github.event_name == 'issue_comment' && github.event.comment.body == 'update pip constraints')
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
runs-on: ubuntu-22.04
Expand All @@ -45,7 +46,8 @@ jobs:
if: >-
github.event_name == 'schedule' ||
github.event_name == 'workflow_dispatch' ||
github.event.pull_request.head.repo.full_name == github.repository
github.event.pull_request.head.repo.full_name == github.repository ||
(github.event_name == 'issue_comment' && github.event.comment.body == 'update pip constraints')
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"[python]": {
"editor.codeActionsOnSave": {
"source.organizeImports": true
"source.organizeImports": "explicit"
},
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.rulers": [88]
Expand Down

0 comments on commit 1842e0a

Please sign in to comment.