Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .flox/env/manifest.lock
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
}
},
"hook": {
"on-activate": "if [[ -f .env ]]; then\n while IFS= read -r line || [[ -n \"$line\" ]]; do\n if [[ -z \"${line// /}\" ]]; then\n continue\n fi\n\n if [[ \"$line\" =~ ^[[:space:]]*# ]]; then\n continue\n fi\n\n line=\"${line%%[[:space:]]*#*}\"\n\n if [[ \"$line\" =~ = ]]; then\n key=\"${line%%=*}\"\n value=\"${line#*=}\"\n\n key=\"${key#\"${key%%[![:space:]]*}\"}\" # trim leading\n key=\"${key%\"${key##*[![:space:]]}\"}\" # trim trailing\n\n if [[ \"$key\" =~ ^[a-zA-Z_][a-zA-Z0-9_]*$ ]]; then\n export \"$key=$value\"\n else\n echo \"Skipping invalid key '$key' in .env\" >&2\n fi\n fi\n done < .env\nelse\n echo \".env file not found, skipping environment variable loading\" >&2\nfi\n"
"on-activate": "if [[ -f .env ]]; then\n set -a\n source .env\n set +a\nfi\n"
},
"options": {
"systems": [
Expand Down
30 changes: 3 additions & 27 deletions .flox/env/manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,33 +46,9 @@ markdownlint-cli.pkg-path = "markdownlint-cli"
[hook]
on-activate = '''
if [[ -f .env ]]; then
while IFS= read -r line || [[ -n "$line" ]]; do
if [[ -z "${line// /}" ]]; then
continue
fi

if [[ "$line" =~ ^[[:space:]]*# ]]; then
continue
fi

line="${line%%[[:space:]]*#*}"

if [[ "$line" =~ = ]]; then
key="${line%%=*}"
value="${line#*=}"

key="${key#"${key%%[![:space:]]*}"}" # trim leading
key="${key%"${key##*[![:space:]]}"}" # trim trailing

if [[ "$key" =~ ^[a-zA-Z_][a-zA-Z0-9_]*$ ]]; then
export "$key=$value"
else
echo "Skipping invalid key '$key' in .env" >&2
fi
fi
done < .env
else
echo ".env file not found, skipping environment variable loading" >&2
set -a
source .env
set +a
Comment thread
forstmeier marked this conversation as resolved.
Comment thread
forstmeier marked this conversation as resolved.
fi
Comment thread
forstmeier marked this conversation as resolved.
'''

Expand Down
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,5 @@ data/
**/model.tar.gz
**/*.safetensor
**/*.json
notes.md
etc/
.claude/tasks/
.scratchpad/
5 changes: 5 additions & 0 deletions .markdownlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ MD033:
- br
- details
- summary
# Custom XML-like tag used by Ralph workflow (maskfile.md) to signal task completion
- promise
# MD041 - First line in file should be top-level heading
MD041: false
# MD022 - Headings should be surrounded by blank lines
MD022:
lines_below: 1
lines_above: 1