feat: add `Ruff` as github action

This commit is contained in:
magic-akari 2023-07-05 14:33:40 +08:00 committed by YuriHead
parent c0125ac139
commit fab65746d6
3 changed files with 13 additions and 8 deletions

8
.github/workflows/ruff.yml vendored Normal file
View File

@ -0,0 +1,8 @@
name: Ruff
on: [push, pull_request]
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: chartboost/ruff-action@v1

9
.gitignore vendored
View File

@ -150,7 +150,6 @@ results
inference/chunks_temp.json
logs
hubert/checkpoint_best_legacy_500.pt
pretrain/**/*.pt
configs/config.json
filelists/test.txt
filelists/train.txt
@ -162,11 +161,5 @@ filelists/val.txt
.idea/vcs.xml
.idea/inspectionProfiles/profiles_settings.xml
.idea/inspectionProfiles/Project_Default.xml
pretrain/vec-768-layer-12.onnx
pretrain/hubert-soft.onnx
pretrain/hubert4.0.onnx
pretrain/vec-256-layer-9.onnx
pretrain/vec-256-layer-12.onnx
pretrain/vec-768-layer-9.onnx
pretrain/
.vscode/launch.json
.ruff.toml

4
.ruff.toml Normal file
View File

@ -0,0 +1,4 @@
select = ["E", "F", "I"]
# Never enforce `E501` (line length violations).
ignore = ["E501"]