| Files | Last commit | Last update |
|---|---|---|
fix(hooks): Fix CodeCheck violations in pypto-op-lint module Co-authored-by: wangzheng97<wangzheng97@hisilicon.com> # message auto-generated for no-merge-commit merge: !2408 merge feat/pypto-op-lint into master fix(hooks): Fix CodeCheck violations in pypto-op-lint module Created-by: wangzheng97 Commit-by: wangzheng97 Merged-by: cann-robot Description: ## Summary - Fix all CodeCheck violations in pypto-op-lint module (G.FMT, G.ERR, G.EDV, G.TYP, G.CTL, G.CLS, Ruff rules) - Add shebang, copyright headers, blank line formatting, import sorting - Use shutil.which for npu-smi executable (G.EDV.05) - Use noqa comments for protected member access (G.CLS.11) instead of getattr/importlib workarounds - Fix bare except (G.ERR.07), empty-sequence comparisons (G.TYP.04), line length (G.FMT.02) - Clean up unused imports ## Test plan - [x] pytest 80 passed (1 pre-existing failure unrelated) - [x] local_codecheck.py pre-scan: 0 violations on changed files See merge request: cann/pypto!2408 | 7 months ago |