-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9838ede
commit 985452b
Showing
11 changed files
with
275 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: format-check | ||
|
||
on: | ||
pull_request: | ||
branches: [ "main" ] | ||
types: [opened, synchronize, reopened] | ||
|
||
jobs: | ||
approve: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.10 | ||
- name: Install dependencies | ||
run: | | ||
pip install black | ||
- name: Run Black | ||
run: >- | ||
black --check | ||
flagscale/auto_tuner/.*\.py| | ||
flagscale/auto_tuner/prune/\..*\.py| | ||
flagscale/auto_tuner/record/\..*\.py| | ||
flagscale/auto_tuner/search/\..*\.py| | ||
flagscale/launcher/\..*\.py| | ||
flagscale/logger\.py| | ||
flagscale/patches_utils\.py| | ||
flagscale/datasets/sft_dataset\.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
repos: | ||
- repo: local | ||
hooks: | ||
- id: black | ||
name: black | ||
entry: black | ||
language: system | ||
types: [python] | ||
files: >- | ||
flagscale/auto_tuner/.*\.py| | ||
flagscale/auto_tuner/prune/\..*\.py| | ||
flagscale/auto_tuner/record/\..*\.py| | ||
flagscale/auto_tuner/search/\..*\.py| | ||
flagscale/launcher/\..*\.py| | ||
flagscale/logger\.py| | ||
flagscale/patches_utils\.py| | ||
flagscale/datasets/sft_dataset\.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.