Skip to content

Commit 37fcec4

Browse files
committed
fix: update github action
1 parent 9bb02cc commit 37fcec4

File tree

2 files changed

+6
-16
lines changed

2 files changed

+6
-16
lines changed

.github/workflows/lint.yml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -39,29 +39,17 @@ jobs:
3939
run: |
4040
python -m pip install --upgrade pip setuptools wheel
4141
42-
- name: Install TorchOpt
42+
- name: Install DeepSeek-VL
4343
env:
4444
USE_FP16: "OFF"
4545
TORCH_CUDA_ARCH_LIST: "Auto"
4646
run: |
4747
python -m pip install torch numpy pybind11
4848
python -m pip install -vvv --no-build-isolation --editable '.[lint]'
4949
50-
- name: pre-commit
50+
- name: black
5151
run: |
52-
make pre-commit
53-
54-
- name: ruff
55-
run: |
56-
make ruff
57-
58-
- name: flake8
59-
run: |
60-
make flake8
61-
62-
- name: isort and black
63-
run: |
64-
make py-format
52+
make black-format
6553
6654
- name: addlicense
6755
run: |

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ py-format: py-format-install
6666
$(PYTHON) -m isort --project $(PROJECT_PATH) --check $(PYTHON_FILES) && \
6767
$(PYTHON) -m black --check $(PYTHON_FILES)
6868

69+
black-format: py-format-install
70+
$(PYTHON) -m black --check $(PYTHON_FILES)
71+
6972
ruff: ruff-install
7073
$(PYTHON) -m ruff check .
7174

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

9193
clean-py:

0 commit comments

Comments
 (0)