Skip to content

Various cleanup and tweaks#744

Merged
forstmeier merged 1 commit intomasterfrom
various-cleanup
Feb 4, 2026
Merged

Various cleanup and tweaks#744
forstmeier merged 1 commit intomasterfrom
various-cleanup

Conversation

@forstmeier
Copy link
Copy Markdown
Collaborator

@forstmeier forstmeier commented Feb 4, 2026

Overview

Changes

  • expand Markdown linting rules
  • update .gitignore and add .scratchpad/ for local work
  • refactor Flox "activate" hook logic

Context

Some more cleanup.

Summary by CodeRabbit

  • Chores
    • Simplified environment variable parsing configuration
    • Updated file tracking settings
    • Enhanced markdown linting rule validation

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Feb 4, 2026

📝 Walkthrough

Walkthrough

This PR updates three configuration files: simplifying environment variable sourcing in the Flox manifest to use direct .env sourcing instead of manual parsing, adjusting version control exclusions in .gitignore, and extending markdown linting rules to allow promise elements and enforce heading spacing.

Changes

Cohort / File(s) Summary
Environment Configuration
.flox/env/manifest.toml
Simplified .env parsing in on-activate block: removed per-line whitespace trimming, comment-skipping, key validation, and manual export construction. Now uses direct sourcing with -a flag. Error handling for missing or invalid lines removed.
Version Control Configuration
.gitignore
Removed notes.md and etc/ from ignored files; added .scratchpad/ to ignored paths.
Linting Configuration
.markdownlint.yaml
Added "promise" to MD033 allowed_elements; enabled MD022 rule with spacing requirements (1 line above and below headings).

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 inconclusive)
Check name Status Explanation Resolution
Title check ❓ Inconclusive The title "Various cleanup and tweaks" is vague and generic, using non-descriptive terms that don't convey meaningful information about the specific changes. Consider a more descriptive title that highlights the main change, such as "Refactor Flox activation hook and expand linting rules" or focus on the most significant modification.
✅ Passed checks (2 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.

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

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch various-cleanup

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

Copy link
Copy Markdown
Collaborator Author

forstmeier commented Feb 4, 2026

@forstmeier forstmeier requested a review from Copilot February 4, 2026 02:18
@forstmeier forstmeier moved this from To Do to In Progress in Overview Feb 4, 2026
Copy link
Copy Markdown
Contributor

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.

Pull request overview

This PR implements several cleanup tasks including expanding Markdown linting rules, updating .gitignore for local development, and simplifying the Flox environment activation logic.

Changes:

  • Added Markdown linting rules for heading spacing (MD022) and documented custom XML-like tags
  • Refactored .env file loading in Flox activation hook from manual parsing to using shell source command

Reviewed changes

Copilot reviewed 2 out of 4 changed files in this pull request and generated 2 comments.

File Description
.markdownlint.yaml Added MD022 rule for heading spacing and documented the custom <promise> tag
.flox/env/manifest.toml Simplified .env file loading by replacing manual parsing with set -a; source .env; set +a

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .flox/env/manifest.toml
Comment thread .flox/env/manifest.toml
@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented Feb 4, 2026

Greptile Overview

Greptile Summary

This PR contains configuration cleanup changes across four files: expanded Markdown linting rules, updated .gitignore patterns, and refactored Flox environment activation hook.

Key Changes:

  • .gitignore: Removed notes.md and etc/ patterns; added .scratchpad/ for local development work
  • .markdownlint.yaml: Added MD022 rule requiring single blank lines above and below headings
  • .flox/env/manifest.toml: Significantly simplified .env loading from 29 lines of defensive parsing to 4 lines using set -a; source .env; set +a
  • .flox/env/manifest.lock: Automatically regenerated to match manifest changes

Observations:
The .env loading refactor removes several safety checks (comment filtering, variable name validation, inline comment handling). This is acceptable if .env files are guaranteed to be clean and well-formatted.

Confidence Score: 4/5

  • Safe to merge with minor consideration for .env file format requirements
  • All changes are configuration updates with low risk. The .env loading simplification is cleaner but removes defensive parsing - acceptable if .env files are well-maintained
  • .flox/env/manifest.toml - verify that .env files won't contain inline comments or malformed entries

Important Files Changed

Filename Overview
.gitignore Removed notes.md and etc/ patterns, added .scratchpad/ for local work
.markdownlint.yaml Added MD022 rule for heading spacing with 1-line padding requirement
.flox/env/manifest.toml Simplified .env loading from 29 lines to 4 lines using set -a and source

coderabbitai[bot]
coderabbitai Bot previously approved these changes Feb 4, 2026
chrisaddy
chrisaddy previously approved these changes Feb 4, 2026
Base automatically changed from initial-claude-commands to master February 4, 2026 18:59
@forstmeier forstmeier dismissed stale reviews from chrisaddy and coderabbitai[bot] February 4, 2026 18:59

The base branch was changed.

Copy link
Copy Markdown
Contributor

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

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

3 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

Comment thread .flox/env/manifest.toml
@forstmeier forstmeier merged commit d988d15 into master Feb 4, 2026
4 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Overview Feb 4, 2026
@forstmeier forstmeier deleted the various-cleanup branch February 4, 2026 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants