Skip to content

Commit

Permalink
fix: update github action
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin-eecs committed Apr 16, 2024
1 parent 9bb02cc commit 37fcec4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
18 changes: 3 additions & 15 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,29 +39,17 @@ jobs:
run: |
python -m pip install --upgrade pip setuptools wheel
- name: Install TorchOpt
- name: Install DeepSeek-VL
env:
USE_FP16: "OFF"
TORCH_CUDA_ARCH_LIST: "Auto"
run: |
python -m pip install torch numpy pybind11
python -m pip install -vvv --no-build-isolation --editable '.[lint]'
- name: pre-commit
- name: black
run: |
make pre-commit
- name: ruff
run: |
make ruff
- name: flake8
run: |
make flake8
- name: isort and black
run: |
make py-format
make black-format
- name: addlicense
run: |
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ py-format: py-format-install
$(PYTHON) -m isort --project $(PROJECT_PATH) --check $(PYTHON_FILES) && \
$(PYTHON) -m black --check $(PYTHON_FILES)

black-format: py-format-install
$(PYTHON) -m black --check $(PYTHON_FILES)

ruff: ruff-install
$(PYTHON) -m ruff check .

Expand All @@ -85,7 +88,6 @@ lint: ruff flake8 py-format mypy pylint addlicense
format: py-format-install ruff-install addlicense-install
$(PYTHON) -m isort --project $(PROJECT_PATH) $(PYTHON_FILES)
$(PYTHON) -m black $(PYTHON_FILES)
$(PYTHON) -m ruff check . --fix --exit-zero
addlicense -c $(COPYRIGHT) -ignore tests/coverage.xml -l mit -y 2023-$(shell date +"%Y") $(SOURCE_FOLDERS) cli_chat.py inference.py

clean-py:
Expand Down

0 comments on commit 37fcec4

Please sign in to comment.