Skip to content

ci: add typos config to suppress false positives on Vertica SVG gradient IDs#2181

Merged
arbiv merged 3 commits intomasterfrom
devin/1775743862-fix-typos-config
Apr 9, 2026
Merged

ci: add typos config to suppress false positives on Vertica SVG gradient IDs#2181
arbiv merged 3 commits intomasterfrom
devin/1775743862-fix-typos-config

Conversation

@devin-ai-integration
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration bot commented Apr 9, 2026

Summary

Adds a _typos.toml configuration file to suppress false positives from the typos pre-commit hook. The hook flags ot in Vertica logo SVG gradient IDs (e.g., vertica_page_ot_gradient) as a misspelling, but these are intentional SVG element identifiers.

The three suppressed identifiers appear in:

  • docs/cloud/integrations/dwh/vertica.mdx
  • docs/snippets/oss/adapters-cards.mdx
  • docs/snippets/cloud/integrations/cards-groups/connect-dwh-cards.mdx

This was causing the code-quality CI check to fail on every PR that includes these docs files.

Review & Testing Checklist for Human

  • Confirm the three gradient IDs are real SVG identifiers in the listed files (not actual typos)
  • Verify _typos.toml is picked up by the pre-commit typos hook (it auto-discovers _typos.toml in the repo root)

Notes

  • Uses extend-identifiers (not extend-words) because typos splits on underscores, treating ot as a separate word within the identifier.
  • Pre-commit hook passed locally after adding this config.

Link to Devin session: https://app.devin.ai/sessions/e56abb358db34b84956c5b78d163f348
Requested by: @arbiv


Open with Devin

Summary by CodeRabbit

  • Chores
    • Typo-checking configuration updated to recognize three additional identifier strings (including SVG gradient IDs) as valid.
    • Development dependency for the type-checker tightened to an upper-bounded constraint (<1.16).

…ent IDs

Co-Authored-By: Yosef Arbiv <yosef.arbiv@gmail.com>
@devin-ai-integration
Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 9, 2026

👋 @devin-ai-integration[bot]
Thank you for raising your pull request.
Please make sure to add tests and document all user-facing changes.
You can do this by editing the docs files in this pull request.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 9, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 7052e40a-f747-4e71-939b-9e1197c00baa

📥 Commits

Reviewing files that changed from the base of the PR and between b55ed89 and e8751cc.

📒 Files selected for processing (1)
  • dev-requirements.txt
✅ Files skipped from review due to trivial changes (1)
  • dev-requirements.txt

📝 Walkthrough

Walkthrough

Added a _typos.toml config that extends allowed identifiers with three Vertica SVG gradient IDs, and tightened the mypy dev dependency to mypy<1.16 in dev-requirements.txt.

Changes

Cohort / File(s) Summary
Typo configuration
\_typos.toml
Added [default.extend-identifiers] entries: vertica_page_ot_gradient, vertica_oss_ot_gradient, vertica_cloud_ot_gradient to whitelist those SVG gradient IDs.
Dev dependency
dev-requirements.txt
Changed mypy spec from unpinned mypy to an upper-bounded mypy<1.16. No other dependency edits.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 I hopped through configs, nibbling a clue,
Three gradients now safe, their names shining through.
I pinned mypy gently, a tidy little feat,
Quick paws, careful hops—two small changes complete.

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and specifically describes the main change: adding a typos configuration file to suppress false positives on Vertica SVG gradient IDs, which aligns with the primary objective.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch devin/1775743862-fix-typos-config

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

Copy link
Copy Markdown
Contributor Author

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

Copy link
Copy Markdown

@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.

🧹 Nitpick comments (1)
_typos.toml (1)

1-6: Consider a pattern-based approach if supported.

If future Vertica SVG identifiers follow the same *_ot_gradient pattern, you might explore whether typos supports wildcard or regex-based rules to reduce maintenance. However, the current explicit approach is safer and works well for the known identifiers.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@_typos.toml` around lines 1 - 6, The current _typos.toml lists explicit
identifiers (vertica_page_ot_gradient, vertica_oss_ot_gradient,
vertica_cloud_ot_gradient) which works but is verbose; check whether the typos
tool supports wildcard or regex rules and, if so, replace these explicit keys
with a single pattern-based rule (e.g., a wildcard or regex matching
*_ot_gradient) to cover future SVG IDs; if the tool does not support patterns,
keep the explicit entries but add a short comment noting to revisit when pattern
support is available.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@_typos.toml`:
- Around line 1-6: The current _typos.toml lists explicit identifiers
(vertica_page_ot_gradient, vertica_oss_ot_gradient, vertica_cloud_ot_gradient)
which works but is verbose; check whether the typos tool supports wildcard or
regex rules and, if so, replace these explicit keys with a single pattern-based
rule (e.g., a wildcard or regex matching *_ot_gradient) to cover future SVG IDs;
if the tool does not support patterns, keep the explicit entries but add a short
comment noting to revisit when pattern support is available.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 9902498f-861d-4131-871e-6f820732afed

📥 Commits

Reviewing files that changed from the base of the PR and between 28daf9f and 30382fa.

📒 Files selected for processing (1)
  • _typos.toml

devin-ai-integration bot and others added 2 commits April 9, 2026 14:24
Co-Authored-By: Yosef Arbiv <yosef.arbiv@gmail.com>
Co-Authored-By: Yosef Arbiv <yosef.arbiv@gmail.com>
Copy link
Copy Markdown
Contributor Author

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

@arbiv arbiv merged commit 0bfd75a into master Apr 9, 2026
4 checks passed
@arbiv arbiv deleted the devin/1775743862-fix-typos-config branch April 9, 2026 15:57
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