Fix: remove committed __pycache__ and monitor.log, drop unused python-dotenv #3

Closed
opened 2026-03-21 23:32:13 +00:00 by murray · 0 comments
Owner

Problem

The .gitignore rules are correct but some files were committed BEFORE .gitignore was added, so they are still tracked.

Tasks

1. Remove pycache from git tracking

git rm -r --cached adapters/__pycache__/

2. Remove monitor.log from git tracking

git rm --cached monitor.log

3. Remove python-dotenv from requirements.txt

python-dotenv is listed as a dependency but is never imported or used anywhere in the code. Remove it from requirements.txt.

4. (Optional) Add .env loading if desired

Either:

  • Remove the .env file mention from README.md, OR
  • Add from dotenv import load_dotenv; load_dotenv() to monitor.py and keep python-dotenv

Recommendation: add the dotenv loading — it is useful for local dev.

Git

cd /path/to/flight-monitor
git rm -r --cached adapters/__pycache__/
git rm --cached monitor.log
# edit requirements.txt and monitor.py
git add -A && git commit -m "fix: remove tracked cache/log files, wire up dotenv" && git push

Use remote URL with token: https://otis:<GITEA_TOKEN>@gitea.netcups.al3dev.link/monkey-island/flight-monitor.git
Token in /root/.openclaw/workspace/.gitea-credentials.

When Done

Run: openclaw system event --text "Done: flight-monitor cleanup (issue #3)" --mode now

## Problem The .gitignore rules are correct but some files were committed BEFORE .gitignore was added, so they are still tracked. ## Tasks ### 1. Remove __pycache__ from git tracking ```bash git rm -r --cached adapters/__pycache__/ ``` ### 2. Remove monitor.log from git tracking ```bash git rm --cached monitor.log ``` ### 3. Remove python-dotenv from requirements.txt `python-dotenv` is listed as a dependency but is never imported or used anywhere in the code. Remove it from `requirements.txt`. ### 4. (Optional) Add .env loading if desired Either: - Remove the `.env` file mention from README.md, OR - Add `from dotenv import load_dotenv; load_dotenv()` to `monitor.py` and keep python-dotenv Recommendation: add the dotenv loading — it is useful for local dev. ## Git ```bash cd /path/to/flight-monitor git rm -r --cached adapters/__pycache__/ git rm --cached monitor.log # edit requirements.txt and monitor.py git add -A && git commit -m "fix: remove tracked cache/log files, wire up dotenv" && git push ``` Use remote URL with token: `https://otis:<GITEA_TOKEN>@gitea.netcups.al3dev.link/monkey-island/flight-monitor.git` Token in `/root/.openclaw/workspace/.gitea-credentials`. ## When Done Run: `openclaw system event --text "Done: flight-monitor cleanup (issue #3)" --mode now`
murray added the
bug
otis
P1-high
labels 2026-03-21 23:32:13 +00:00
otis closed this issue 2026-03-21 23:32:55 +00:00
Sign in to join this conversation.
No description provided.