Skip to content

chore: auto-format YAML and Markdown files #473

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 12, 2025
Merged

Conversation

aaronsteers
Copy link
Contributor

@aaronsteers aaronsteers commented Apr 10, 2025

Apply consistent formatting to YAML and Markdown files for improved readability and maintainability.

Also fixes a bug where a few poe commands did not wrap with 'poetry run', which could cause the wrong ruff version to be used.

Summary by CodeRabbit

  • Style

    • Adjusted formatting across CI configurations for enhanced readability and clarity.
  • Chores

    • Updated job naming conventions and command executions to align with dependency management standards.
    • Added pull request title validation to help maintain proper PR guidelines.
  • Documentation

    • Revised contributor guidelines to include examples and usage of utility tasks.
@Copilot Copilot AI review requested due to automatic review settings April 10, 2025 17:04
@github-actions github-actions bot added the chore label Apr 10, 2025
@aaronsteers aaronsteers requested review from aldogonzalez8 and removed request for Copilot April 10, 2025 17:04
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.

Copy link
Contributor

coderabbitai bot commented Apr 10, 2025

📝 Walkthrough

Walkthrough

This pull request applies several cosmetic adjustments and formatting improvements across multiple GitHub workflow files, documentation, and configuration files. It includes whitespace fixes, job name corrections, and indentation cleanups in workflows; a new step is added in the semantic PR check workflow to validate that the pull request title does not contain forbidden phrases; documentation now highlights the use of Poe tasks for common actions; and task commands in the configuration are updated to consistently run within the Poetry environment.

Changes

File(s) Change Summary
.github/workflows/connector-tests.yml,
.github/workflows/docker-build-check.yml,
.github/workflows/pypi_publish.yml,
.github/workflows/python_dependency_analysis.yml,
.github/workflows/slash_command_dispatch.yml
Cosmetic formatting and whitespace adjustments, including job name trimming and indentation fixes in GitHub workflows.
.github/workflows/semantic_pr_check.yml Added a new step in the validate_pr_title job to check for the phrase "do not merge" in the PR title using actions/github-script@v6.
debug_manifest/README.md Reformatted the JSON configuration block for the VSCode debugger and made minor textual formatting corrections.
docs/CONTRIBUTING.md Expanded the "First Time Setup" section to include guidance on using Poe tasks for linting and formatting actions.
pyproject.toml Updated task command strings to prefix ruff and pytest commands with poetry run, ensuring they execute in the Poetry environment.

Sequence Diagram(s)

sequenceDiagram
    participant Runner as GitHub Actions Runner
    participant Validator as Semantic PR Validator
    participant PR as Pull Request Data

    Runner->>Validator: Trigger validate_pr_title job
    Validator->>PR: Retrieve PR title
    Validator->>Validator: Convert title to lowercase and check for "do not merge"
    alt Forbidden phrase found
        Validator-->>Runner: Fail the job with an error message
    else No forbidden phrase
        Validator-->>Runner: Continue workflow execution
    end
Loading

Suggested labels

chore, docs

Suggested reviewers

  • ChristoGrab

Would you like to include these reviewers and labels in the final merge, wdyt?


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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

‼️ IMPORTANT
Auto-reply has been disabled for this repository in the CodeRabbit settings. The CodeRabbit bot will not respond to your replies unless it is explicitly tagged.

  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai plan to trigger planning for file edits and PR creation.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.
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 (5)
debug_manifest/README.md (2)

5-7: Improve Instruction Clarity in VSCode Debugger Setup
The updated instructions at the beginning of the file are now more readable. Would you consider double-checking that the spacing and wording here match our style used in other documentation? wdyt?


51-53: Enhance Instructional Punctuation
A static analysis note suggests adding a comma after “Alternatively” (in the line that discusses switching the default interpreter) to improve clarity. Would you consider making this small refinement? wdyt?

🧰 Tools
🪛 LanguageTool

[typographical] ~52-~52: Consider adding a comma after ‘Alternatively’ for more clarity.
Context: ...), to wire the CDK env to the debugger. Alternatively you can switch the default interpreter ...

(RB_LY_COMMA)

.github/workflows/slash_command_dispatch.yml (1)

54-54: Improved Formatting with an Added Blank Line
The inserted blank line before the conditional block in the help text generation step aids readability. Can you confirm that this formatting improvement does not affect the command’s logic? wdyt?

.github/workflows/semantic_pr_check.yml (1)

41-52: Enhancement for PR Title Validation
The new step that checks for "do not merge" in the pull request title looks like a solid enhancement. Converting the title to lowercase and checking for both "do not merge" and "do-not-merge" ensures that case differences won’t let unwanted merges slip through. Would you consider if there are any additional forbidden patterns or edge cases to check? wdyt?

🧰 Tools
🪛 actionlint (1.7.4)

45-45: the runner of "actions/github-script@v6" action is too old to run on GitHub Actions. update the action's version to fix this issue

(action)

docs/CONTRIBUTING.md (1)

21-23: Improved Contributor Guidance for Poe Tasks
The new line introducing the use of "Poe" tasks (e.g., poetry run poe lint and poetry run poe format-fix) adds clarity and aligns well with our updated task commands in the configuration. Do you think it might be beneficial to briefly explain why using the Poetry environment is critical here, especially for newcomers? wdyt?

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 3e82436 and bde5118.

📒 Files selected for processing (9)
  • .github/workflows/connector-tests.yml (1 hunks)
  • .github/workflows/docker-build-check.yml (1 hunks)
  • .github/workflows/pypi_publish.yml (0 hunks)
  • .github/workflows/python_dependency_analysis.yml (1 hunks)
  • .github/workflows/semantic_pr_check.yml (1 hunks)
  • .github/workflows/slash_command_dispatch.yml (1 hunks)
  • debug_manifest/README.md (2 hunks)
  • docs/CONTRIBUTING.md (1 hunks)
  • pyproject.toml (2 hunks)
💤 Files with no reviewable changes (1)
  • .github/workflows/pypi_publish.yml
🧰 Additional context used
🪛 LanguageTool
debug_manifest/README.md

[typographical] ~52-~52: Consider adding a comma after ‘Alternatively’ for more clarity.
Context: ...), to wire the CDK env to the debugger. Alternatively you can switch the default interpreter ...

(RB_LY_COMMA)


[style] ~60-~60: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...red catalogfor the target source). 3. Put themanifest.yamlinside the/airbyt...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)

⏰ Context from checks skipped due to timeout of 90000ms (9)
  • GitHub Check: Check: 'source-pokeapi' (skip=false)
  • GitHub Check: Check: 'source-amplitude' (skip=false)
  • GitHub Check: Check: 'source-shopify' (skip=false)
  • GitHub Check: Check: 'source-hardcoded-records' (skip=false)
  • GitHub Check: Pytest (All, Python 3.11, Ubuntu)
  • GitHub Check: Pytest (All, Python 3.10, Ubuntu)
  • GitHub Check: Pytest (Fast)
  • GitHub Check: SDM Docker Image Build
  • GitHub Check: Analyze (python)
🔇 Additional comments (9)
debug_manifest/README.md (1)

15-47: Verify JSON Configuration Format and Consistency
The JSON configuration block now uses a 4-space indentation and removes the extraneous comma, which improves both readability and syntactical correctness. Can you confirm that the updated format works seamlessly with VSCode’s debugger?

.github/workflows/docker-build-check.yml (1)

10-10: Job Name Formatting Cleanup
The job name now reads “SDM Docker Image Build” without trailing spaces, which aligns nicely with our naming conventions. Does this updated naming meet your expectations?

.github/workflows/python_dependency_analysis.yml (2)

22-32: Improve Readability of Workflow Step Indentation
The reindented block for checkout, Python setup, and Poetry setup steps enhances legibility considerably. Can you verify that these formatting changes have no unintended impact on the workflow execution?


33-39: Confirm Shell Command Consistency
The step to install dependencies and run Deptry is now more consistent in its layout. Would you mind confirming that these changes haven’t altered the intended behavior of the job? wdyt?

.github/workflows/connector-tests.yml (1)

99-100: Minor Formatting Correction on Permissions Block
Removing the extra space before the inline comment on the “contents: write” line tidies up the file. Does this adjustment reflect your intended style for maintaining consistency?

.github/workflows/slash_command_dispatch.yml (1)

1-2: Double-check poe Command Wrapping
The PR objectives mention addressing a bug where certain poe commands were not correctly wrapped with poetry run. I don’t see an explicit change here regarding this issue. Could you confirm that all such commands are now wrapped as intended, or is that fix applied elsewhere? wdyt?

pyproject.toml (3)

134-134: Formatting Check Task Update
Updating _format-check-ruff to use poetry run ruff format --check . is a great move to ensure that the command runs in a controlled Poetry environment. Do you want to double-check that this change is fully compatible with our CI and local setups? wdyt?


139-139: Formatting Fix Task Update
Changing _format-fix-ruff to poetry run ruff format . helps in maintaining consistency across our task executions. Are you comfortable that this wrapping won’t introduce any unexpected behavior in different environments? wdyt?


165-165: Unit Test Command Update
Switching the unit-test-with-cov command to run with poetry run pytest ... ensures that we’re executing tests within the appropriate dependency context. Have you verified that this change integrates smoothly with our test infrastructure without any performance impacts? wdyt?

@aaronsteers aaronsteers merged commit 836d587 into main Apr 12, 2025
26 checks passed
@aaronsteers aaronsteers deleted the aj/chore/run-format branch April 12, 2025 04:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 participant