Fix lint/CI duplication and script robustness issues - #124
mergify[bot] merged 1 commit into
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (4)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe Python lint workflow removes direct package installation commands and adds an isort check through Poetry. The lint script exits when a command fails. The client-generation and shared-constants installation scripts quote paths in the affected commands. Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to No actionable merge risk was identified in the reviewed tooling changes. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Linked Issues checkExplanation The changes address CLI lint alignment and shell robustness in the scripts listed by [ Resolution Consolidate the CI and local lint/format commands behind one maintained source of truth. Review the applicable scripts from [
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Queued — the merge queue status continues in this comment ↓. |
Merge Queue Status
This pull request spent 15 seconds in the queue, including 1 second running CI. Required conditions to merge |
Fix: project-chip/certification-tool#1131
Changes
pip install black flake8 mypy pydantic types-requestsstep (every actual lint invocation usespoetry run, so this step populated an environment nothing reads from), and added the missingisort --check-only th_clistep so CI now checks exactly whatscripts/lint.shchecks locally. Previously isort issues could pass CI but fail local lint (or vice versa).set -e— previously only the last linter's exit code counted, so earlier failures (mypy, black) were silently ignored.$PROJECT_ROOT/...,$SHARED_CONST_DIR/...) that would break on paths containing spaces.Not changed (reviewed, left alone)
scripts/run_pytest.sh,scripts/check_deps.py,scripts/format.sh— no defects found.scripts/datamodel_generate_client.py(1039 lines) — spot-checked, no defects found; a full line-by-line audit felt disproportionate for this low-risk batch given it's a rarely-run manual codegen tool.th_cli_install.sh'spoetry self update(auto-upgrades the developer's global Poetry on every install) — possibly intentional, left as-is pending confirmation it's safe to remove.Testing
No
poetry/pytest/mypyavailable in the environment these fixes were authored in. Verified viabash -n(syntax) on all shell scripts and manual YAML validation of the workflow file. Please run CI on this branch before merging to confirm the addedisort --check-onlystep passes and the lint-action step still behaves as expected without the removedpip installstep.