Skip to content

fix: align docs for updated make targets#135

Merged
asamal4 merged 1 commit intolightspeed-core:mainfrom
asamal4:document-make-targets
Jan 12, 2026
Merged

fix: align docs for updated make targets#135
asamal4 merged 1 commit intolightspeed-core:mainfrom
asamal4:document-make-targets

Conversation

@asamal4
Copy link
Collaborator

@asamal4 asamal4 commented Jan 12, 2026

Description

Update docs for updated make targets. Add git hook info to contribution guide.

Type of change

  • Refactor
  • New feature
  • Bug fix
  • CVE fix
  • Optimization
  • Documentation Update
  • Configuration Update
  • Bump-up service version
  • Bump-up dependent library
  • Bump-up library or tool used for development (does not change the final image)
  • CI configuration change
  • Unit tests improvement

Tools used to create PR

Identify any AI code assistants used in this PR (for transparency and review context)

  • Assisted-by: (e.g., Claude, CodeRabbit, Ollama, etc., N/A if not used)
  • Generated by: (e.g., tool name and version; N/A if not used)

Related Tickets & Documents

  • Related Issue #
  • Closes #

Checklist before requesting a review

  • I have performed a self-review of my code.
  • PR has passed all pre-merge test jobs.
  • If it is a core feature, I have added thorough tests.

Testing

  • Please provide detailed steps to perform tests related to this code change.
  • How were the fix/results from this change verified? Please provide relevant screenshots or results.

Summary by CodeRabbit

  • Documentation
    • Reorganized development docs to introduce a granular quality-check workflow plus a consolidated pre-commit step.
    • Added an Installed Hooks note: git hooks are installed via the new install target; pre-commit runs before commits and tests run before pushes.
    • Added explicit make targets: install-deps-test, black-format, pre-commit (runs all checks), and individual checks (bandit, check-types, pyright, docstyle, ruff, pylint, black-check).

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 12, 2026

Walkthrough

Updates developer docs (AGENTS.md, CONTRIBUTING.md, README.md) to split consolidated format/verify targets into granular make targets (black-format, bandit, check-types, pyright, docstyle, ruff, pylint, black-check), introduce make pre-commit to run all checks, and document automatic Git hook installation via make install-deps-test. (34 words)

Changes

Cohort / File(s) Summary
Development workflow docs
AGENTS.md, CONTRIBUTING.md, README.md
Replace combined formatting/verification workflow with granular make targets (make black-format, make bandit, make check-types, make pyright, make docstyle, make ruff, make pylint, make black-check), add make pre-commit to run all checks, and document auto-installation of Git hooks via make install-deps-test.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • VladimirKadlec
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Title check ✅ Passed The title clearly summarizes the main change: updating documentation to reflect revised Makefile targets across AGENTS.md, CONTRIBUTING.md, and README.md.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
README.md (1)

34-36: Note: This file uses make install-tools consistently.

README.md uses make install-tools (lines 35, 388), which conflicts with CONTRIBUTING.md line 69 and AGENTS.md line 100 using make install-deps-test. As the primary user-facing documentation, README.md should be authoritative, suggesting the other files need correction.

🤖 Fix all issues with AI agents
In @AGENTS.md:
- Around line 66-67: AGENTS.md references two different Make targets ("make
install-tools" and "make install-deps-test"); inspect the Makefile to determine
the actual target name used for installing git hooks/dependencies, then update
AGENTS.md so both mentions use that single, correct target (replace either "make
install-tools" or "make install-deps-test" to match the Makefile) and ensure any
surrounding text still makes sense with the chosen target.
📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 7b7afe9 and 3db8d59.

📒 Files selected for processing (3)
  • AGENTS.md
  • CONTRIBUTING.md
  • README.md
🧰 Additional context used
🧠 Learnings (4)
📓 Common learnings
Learnt from: CR
Repo: lightspeed-core/lightspeed-evaluation PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-11T10:05:06.422Z
Learning: Update docs/, README.md, and AGENTS.md when modifying functionality or adding new features
Learnt from: CR
Repo: lightspeed-core/lightspeed-evaluation PR: 0
File: CLAUDE.md:0-0
Timestamp: 2025-11-24T16:59:09.244Z
Learning: Review AGENTS.md - this file contains agent-related guidelines and documentation
Learnt from: asamal4
Repo: lightspeed-core/lightspeed-evaluation PR: 47
File: src/lightspeed_evaluation/core/output/generator.py:140-145
Timestamp: 2025-09-11T12:47:06.747Z
Learning: User asamal4 prefers that non-critical comments are sent when actual code changes are pushed, not on unrelated commits.
📚 Learning: 2025-12-11T10:05:06.422Z
Learnt from: CR
Repo: lightspeed-core/lightspeed-evaluation PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-11T10:05:06.422Z
Learning: Run make format, make verify, make check-types, make pyright, make docstyle, make bandit, and make test before completing code changes

Applied to files:

  • AGENTS.md
  • README.md
  • CONTRIBUTING.md
📚 Learning: 2025-12-11T10:05:06.422Z
Learnt from: CR
Repo: lightspeed-core/lightspeed-evaluation PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-11T10:05:06.422Z
Learning: Update docs/, README.md, and AGENTS.md when modifying functionality or adding new features

Applied to files:

  • AGENTS.md
📚 Learning: 2025-11-24T16:59:09.244Z
Learnt from: CR
Repo: lightspeed-core/lightspeed-evaluation PR: 0
File: CLAUDE.md:0-0
Timestamp: 2025-11-24T16:59:09.244Z
Learning: Review AGENTS.md - this file contains agent-related guidelines and documentation

Applied to files:

  • AGENTS.md
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: tests (3.11)
  • GitHub Check: tests (3.13)
  • GitHub Check: tests (3.12)
🔇 Additional comments (5)
CONTRIBUTING.md (3)

47-53: Excellent addition documenting Git hooks.

The hooks table clearly documents the automated workflow, helping developers understand what runs and when. This improves the developer experience by setting clear expectations.


68-69: No action needed. The make targets are used correctly for their respective purposes. install-tools (used in README.md and AGENTS.md for git hooks setup) and install-deps-test (used in CONTRIBUTING.md for full development setup) are different targets serving different purposes. CONTRIBUTING.md correctly uses install-deps-test because developers need the full test infrastructure, which depends on install-tools and adds test dependencies. The targets are not inconsistent—they're appropriately scoped.

Likely an incorrect or invalid review comment.


71-86: Well-structured quality check workflow.

The split between individual checks and the unified make pre-commit option provides good flexibility for developers. Individual targets allow faster iteration during development, while the unified command ensures consistency with CI. All documented make targets have been verified to exist in the Makefile.

AGENTS.md (1)

48-66: Consistent quality check workflow across documentation.

The individual quality checks and unified make pre-commit option match the workflow documented in CONTRIBUTING.md. The addition of Git hooks information (line 66) is helpful context for AI agents.

README.md (1)

387-406: Well-organized development workflow documentation.

The Development Tools section clearly documents the workflow: installation (with hooks) → formatting → individual quality checks → unified pre-commit option → testing. The comments for each command (e.g., "Security scan (bandit)") provide helpful context.

@asamal4 asamal4 force-pushed the document-make-targets branch 2 times, most recently from 2691370 to 7cb5d66 Compare January 12, 2026 07:59
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (2)
AGENTS.md (1)

54-60: Minor: Inconsistent comment style with CONTRIBUTING.md.

The individual make target comments here use simple descriptions (e.g., # Security scan), while CONTRIBUTING.md lines 77-83 include tool names in parentheses (e.g., # Security scan (bandit)). Consider aligning the comment style between both files for consistency.

♻️ Suggested alignment with CONTRIBUTING.md style
-make bandit          # Security scan
-make check-types     # Type check
-make pyright         # Type check
-make docstyle        # Docstring style
-make ruff            # Lint check
-make pylint          # Lint check
-make black-check     # Check formatting
+make bandit          # Security scan (bandit)
+make check-types     # Type check (mypy)
+make pyright         # Type check (pyright)
+make docstyle        # Docstring style (pydocstyle)
+make ruff            # Lint check (ruff)
+make pylint          # Lint check (pylint)
+make black-check     # Check formatting (black)

Alternatively, remove the redundant tool names from CONTRIBUTING.md to match this simpler style.

CONTRIBUTING.md (1)

77-83: Minor: Consider simplifying redundant tool name annotations.

Several make targets already clearly indicate their tool (e.g., make bandit, make ruff, make pylint, make pyright), making the tool names in parentheses redundant. Only check-types, docstyle, and black-check benefit from the clarification.

This also differs from AGENTS.md lines 54-60, which use simpler comments without tool names in parentheses.

♻️ Option 1: Remove redundant tool names
-make bandit          # Security scan (bandit)
+make bandit          # Security scan
 make check-types     # Type check (mypy)
-make pyright         # Type check (pyright)
+make pyright         # Type check
 make docstyle        # Docstring style (pydocstyle)
-make ruff            # Lint check (ruff)
+make ruff            # Lint check
-make pylint          # Lint check (pylint)
+make pylint          # Lint check
 make black-check     # Check formatting (black)
♻️ Option 2: Align AGENTS.md to match this style (see AGENTS.md comment)

Add tool names in parentheses to AGENTS.md lines 54-60 to match this format.

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 2691370 and 7cb5d66.

📒 Files selected for processing (3)
  • AGENTS.md
  • CONTRIBUTING.md
  • README.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • README.md
🧰 Additional context used
🧠 Learnings (4)
📓 Common learnings
Learnt from: CR
Repo: lightspeed-core/lightspeed-evaluation PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-11T10:05:06.422Z
Learning: Update docs/, README.md, and AGENTS.md when modifying functionality or adding new features
Learnt from: CR
Repo: lightspeed-core/lightspeed-evaluation PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-11T10:05:06.422Z
Learning: Run make format, make verify, make check-types, make pyright, make docstyle, make bandit, and make test before completing code changes
Learnt from: CR
Repo: lightspeed-core/lightspeed-evaluation PR: 0
File: CLAUDE.md:0-0
Timestamp: 2025-11-24T16:59:09.244Z
Learning: Review AGENTS.md - this file contains agent-related guidelines and documentation
Learnt from: asamal4
Repo: lightspeed-core/lightspeed-evaluation PR: 47
File: src/lightspeed_evaluation/core/output/generator.py:140-145
Timestamp: 2025-09-11T12:47:06.747Z
Learning: User asamal4 prefers that non-critical comments are sent when actual code changes are pushed, not on unrelated commits.
📚 Learning: 2025-12-11T10:05:06.422Z
Learnt from: CR
Repo: lightspeed-core/lightspeed-evaluation PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-11T10:05:06.422Z
Learning: Run make format, make verify, make check-types, make pyright, make docstyle, make bandit, and make test before completing code changes

Applied to files:

  • AGENTS.md
  • CONTRIBUTING.md
📚 Learning: 2025-12-11T10:05:06.422Z
Learnt from: CR
Repo: lightspeed-core/lightspeed-evaluation PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-11T10:05:06.422Z
Learning: Update docs/, README.md, and AGENTS.md when modifying functionality or adding new features

Applied to files:

  • AGENTS.md
📚 Learning: 2025-11-24T16:59:09.244Z
Learnt from: CR
Repo: lightspeed-core/lightspeed-evaluation PR: 0
File: CLAUDE.md:0-0
Timestamp: 2025-11-24T16:59:09.244Z
Learning: Review AGENTS.md - this file contains agent-related guidelines and documentation

Applied to files:

  • AGENTS.md
🔇 Additional comments (3)
AGENTS.md (1)

48-67: LGTM! Clear documentation of the new granular workflow.

The updated quality checks workflow is well-documented and provides clear guidance on the new make targets. The distinction between make pre-commit (consolidated) and individual check targets is helpful.

CONTRIBUTING.md (2)

47-53: LGTM! Well-structured Git hooks documentation.

The new "Installed Hooks" section clearly documents what runs when, using a clean table format that's easy to scan.


68-86: LGTM! Clear setup instructions with new make targets.

The updated setup instructions clearly document the new workflow, including the distinction between consolidated (make pre-commit) and individual check targets. The progression from formatting → checks → tests is logical and easy to follow.

@asamal4 asamal4 force-pushed the document-make-targets branch from 7cb5d66 to 6473881 Compare January 12, 2026 08:08
@asamal4 asamal4 changed the title chore: align docs for updated make targets fix: align docs for updated make targets Jan 12, 2026
Copy link
Contributor

@VladimirKadlec VladimirKadlec left a comment

Choose a reason for hiding this comment

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

LGTM, thank you

@asamal4 asamal4 merged commit ae915fd into lightspeed-core:main Jan 12, 2026
15 checks passed
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.

2 participants