Skip to content

fix: pre-commit ruff hooks check the package source - #5

Merged
SMI-Lab-Inha merged 1 commit into
devfrom
fix/precommit-src-paths
Nov 16, 2026
Merged

SMI-Lab-Inha merged 1 commit into
devfrom
fix/precommit-src-paths

Conversation

@SMI-Lab-Inha

Copy link
Copy Markdown
Owner

Summary

The pre-commit ruff hooks never checked the package source. They matched ^(cablexsec|tests|examples|validation|release)/, but the package lives under src/cablexsec. As a result, pre-commit passed code that the CI lint job then rejected: CI runs ruff over src tests examples validation release doc. This cost a CI round on #3.

Change

  • Paths: both ruff hooks take the same trees as CI: ^(src|tests|examples|validation|release|doc)/.*\.py$.
  • Version: the hook rev is the ruff that CI installs (0.15.22, within the dev pin >=0.15,<0.16).

Checks

  • pre-commit run --all-files passes on the whole tree unchanged, rebased on dev 6a907cf.

The ruff hooks matched ^(cablexsec|tests|examples|validation|release)/, but the
package lives under src/cablexsec, so pre-commit never linted or formatted it
and CI's lint job (ruff over src tests examples validation release doc) caught
what pre-commit passed. The hooks now take the same trees as CI, and the hook
rev matches the ruff CI installs (0.15.22, within the dev pin >=0.15,<0.16).
The whole tree passes the hooks unchanged.

Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
@SMI-Lab-Inha

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-16T00:38:46.493717Z fc2d5fd Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 CableXSec | 🛠️ Build #35914106 | 📁 Comparing fc2d5fd against latest (240bf9c)

  🔍 Preview build  

16 files changed · ± 16 modified

± Modified

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: fc2d5fd380

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@SMI-Lab-Inha
SMI-Lab-Inha merged commit 1c17bfc into dev Nov 16, 2026
12 checks passed
@SMI-Lab-Inha
SMI-Lab-Inha deleted the fix/precommit-src-paths branch November 16, 2026 01:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant