Skip to content

Commit

Permalink
fix ruff issue
Browse files Browse the repository at this point in the history
  • Loading branch information
awkrail committed Sep 12, 2024
1 parent a5c0612 commit ba1d356
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ jobs:
pip install torch==2.0.0 torchvision==0.15.1 torchaudio==2.0.1 torchtext==0.15.1
pip install easydict pandas tqdm pyyaml scikit-learn ffmpeg-python ftfy regex einops fvcore gradio torchlibrosa librosa
pip install 'clip@git+https://github.com/openai/CLIP.git'
pip install mypy
pip install mypy ruff
- name: Run mypy
run: find lighthouse -type f -name "*.py" -not -path 'lighthouse/common/*' | xargs mypy

- name: Run ruff
run: find lighthouse -type f -name "*.py" -not -path 'lighthouse/common/*' | xargs -I {} sh -c 'ruff check "{}"'
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ venv.bak/
.dmypy.json
dmypy.json

# ruff
.ruff_cache/

# Pyre type checker
.pyre/

Expand Down

0 comments on commit ba1d356

Please sign in to comment.