Skip to content

Conversation

@Potabk
Copy link
Collaborator

@Potabk Potabk commented Jun 17, 2025

What this PR does / why we need it?

Follow vllm-project/vllm lint way: https://github.com/vllm-project/vllm/blob/main/.pre-commit-config.yaml

Enable pre-commit to avoid some low level error AMAP.

This pr is one step of #1241, The purpose is make linting system more clear and convenient, on this step, Mainly did the following things: yapf, actionlint, ruff, typos, isort, mypy, png-lint, signoff-commit, enforce-import-regex-instead-of-re.

TODO:

  • clang-format(check for csrc with google style)
    need clean code, disable for now
  • pymarkdown
    need clean code, disable for now
  • shellcheck
    need clean code, disable for now

Does this PR introduce any user-facing change?

Only developer UX change:
https://vllm-ascend--1256.org.readthedocs.build/en/1256/developer_guide/contributing.html#run-lint-locally

pip install -r requirements-lint.txt && pre-commit install
bash format.sh

How was this patch tested?

CI passed with new added/existing test.

Co-authored-by: Yikun yikunkero@gmail.com
Co-authored-by: wangli wangli858794774@gmail.com

@github-actions github-actions bot added documentation Improvements or additions to documentation ci/build module:tests module:ops module:tools and removed documentation Improvements or additions to documentation module:tests module:ops labels Jun 17, 2025
@Potabk Potabk force-pushed the lint-2 branch 2 times, most recently from 3313968 to b6b8bf3 Compare June 17, 2025 09:08
@github-actions github-actions bot added documentation Improvements or additions to documentation module:tests module:ops labels Jun 17, 2025
@Potabk Potabk force-pushed the lint-2 branch 2 times, most recently from 0ff0fa9 to e196c98 Compare June 18, 2025 01:35
@Potabk
Copy link
Collaborator Author

Potabk commented Jun 18, 2025

cc @Yikun @wangxiyuan

@github-actions
Copy link

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@Yikun
Copy link
Collaborator

Yikun commented Jun 19, 2025

c8bb90f

  • Update format.sh to have two cmd format.sh and format.sh ci
  • Update the vllm-ascend doc
  • Add some note

After consideration, I didn't add mypy lint to format.sh, but added format.sh ci

@Yikun
Copy link
Collaborator

Yikun commented Jun 19, 2025

Need a rebase after #1293 resolved

name: 'test'

on:
schedule:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why we remove the schedule here?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, currently this is a per PR check, we can enable push trigger in future

@Yikun Yikun added the ready read for review label Jun 20, 2025
@github-actions github-actions bot added merge-conflicts and removed ready read for review labels Jun 20, 2025
@github-actions
Copy link

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@codecov
Copy link

codecov bot commented Jun 25, 2025

Codecov Report

❌ Patch coverage is 0% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 54.48%. Comparing base (c30ddb8) to head (82053fe).
⚠️ Report is 613 commits behind head on main.

Files with missing lines Patch % Lines
vllm_ascend/ops/fused_moe.py 0.00% 4 Missing ⚠️
vllm_ascend/ops/vocab_parallel_embedding.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1256       +/-   ##
===========================================
+ Coverage   27.39%   54.48%   +27.09%     
===========================================
  Files          56       79       +23     
  Lines        6191     9925     +3734     
===========================================
+ Hits         1696     5408     +3712     
- Misses       4495     4517       +22     
Flag Coverage Δ
unittests 54.48% <0.00%> (+27.09%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Yikun Yikun force-pushed the lint-2 branch 2 times, most recently from c1f868a to 9b07f5e Compare June 25, 2025 12:17
@Potabk
Copy link
Collaborator Author

Potabk commented Jun 25, 2025

since we have new linting sys(typos), we don't need doc_codespell

@Potabk
Copy link
Collaborator Author

Potabk commented Jun 25, 2025

will enable clang-format, pymarkdown, shellcheck in the next step

@Yikun Yikun mentioned this pull request Jun 28, 2025
40 tasks
@github-actions
Copy link

This pull request has conflicts, please resolve those before we can evaluate the pull request.

Potabk added 8 commits July 9, 2025 15:04
Signed-off-by: wangli <wangli858794774@gmail.com>
Signed-off-by: wangli <wangli858794774@gmail.com>
Signed-off-by: wangli <wangli858794774@gmail.com>
Signed-off-by: wangli <wangli858794774@gmail.com>
Signed-off-by: wangli <wangli858794774@gmail.com>
Signed-off-by: wangli <wangli858794774@gmail.com>
Signed-off-by: wangli <wangli858794774@gmail.com>
Signed-off-by: wangli <wangli858794774@gmail.com>
Signed-off-by: wangli <wangli858794774@gmail.com>
@@ -1,33 +0,0 @@

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doc change won't track lint check. This should not be removed. Or we need find another way. I'll do it in the next PR.

@wangxiyuan wangxiyuan merged commit c744643 into vllm-project:main Jul 10, 2025
21 checks passed
chopper0126 pushed a commit to chopper0126/vllm-ascend that referenced this pull request Oct 16, 2025
### What this PR does / why we need it?

Follow vllm-project/vllm lint way:
https://github.com/vllm-project/vllm/blob/main/.pre-commit-config.yaml

Enable pre-commit to avoid some low level error  AMAP.

This pr is one step of vllm-project#1241, The purpose is make linting system more
clear and convenient, on this step, Mainly did the following things:
yapf, actionlint, ruff, typos, isort, mypy, png-lint, signoff-commit,
enforce-import-regex-instead-of-re.

TODO: 
- clang-format(check for csrc with google style)
need clean code, disable for now 
- pymarkdown
need clean code, disable for now 
- shellcheck
need clean code, disable for now 

### Does this PR introduce _any_ user-facing change?

Only developer UX change:

https://vllm-ascend--1256.org.readthedocs.build/en/1256/developer_guide/contributing.html#run-lint-locally

```
pip install -r requirements-lint.txt && pre-commit install
bash format.sh
```

### How was this patch tested?

CI passed with new added/existing test.

Co-authored-by: Yikun [yikunkero@gmail.com](mailto:yikunkero@gmail.com)
Co-authored-by: wangli
[wangli858794774@gmail.com](mailto:wangli858794774@gmail.com)
- vLLM version: v0.9.1
- vLLM main:
vllm-project/vllm@5358cce

---------

Signed-off-by: wangli <wangli858794774@gmail.com>
Angazenn pushed a commit to Angazenn/vllm-ascend that referenced this pull request Oct 21, 2025
### What this PR does / why we need it?

Follow vllm-project/vllm lint way:
https://github.com/vllm-project/vllm/blob/main/.pre-commit-config.yaml

Enable pre-commit to avoid some low level error  AMAP.

This pr is one step of vllm-project#1241, The purpose is make linting system more
clear and convenient, on this step, Mainly did the following things:
yapf, actionlint, ruff, typos, isort, mypy, png-lint, signoff-commit,
enforce-import-regex-instead-of-re.

TODO: 
- clang-format(check for csrc with google style)
need clean code, disable for now 
- pymarkdown
need clean code, disable for now 
- shellcheck
need clean code, disable for now 

### Does this PR introduce _any_ user-facing change?

Only developer UX change:

https://vllm-ascend--1256.org.readthedocs.build/en/1256/developer_guide/contributing.html#run-lint-locally

```
pip install -r requirements-lint.txt && pre-commit install
bash format.sh
```

### How was this patch tested?

CI passed with new added/existing test.

Co-authored-by: Yikun [yikunkero@gmail.com](mailto:yikunkero@gmail.com)
Co-authored-by: wangli
[wangli858794774@gmail.com](mailto:wangli858794774@gmail.com)
- vLLM version: v0.9.1
- vLLM main:
vllm-project/vllm@5358cce

---------

Signed-off-by: wangli <wangli858794774@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants