Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Diaco Soltanpour <s-diaco@users.noreply.github.com>
2.2 KiB
2.2 KiB
xlsx-clean
xlsx-clean is a small Windows-only Python CLI (src/xlsx_clean/clean_cells.py) that
generates a new Excel QC datasheet from the most recent workbook in a configured directory,
clearing/resetting specific cells via Microsoft Excel COM automation (pywin32).
Cursor Cloud specific instructions
Platform limitation (important)
- The app is Windows-only and cannot run end-to-end on this Linux VM:
pywin32has no Linux wheels, so it is intentionally not installed here.src/xlsx_clean/clean_cells.pyimportswin32com.clientat module top level and drives the desktop Microsoft Excel app via COM, plus readsD:\OpenCloud\...Windows paths fromsrc/xlsx_clean/file_data.csv. None of that exists on Linux.
- What does run on Linux: everything except the Excel COM layer, i.e. the config/data
logic (reading
strings.txt+file_data.csvwithpandas, resolving the set/ink-color selection, and computing the new workbook filename from the[SERIAL]pattern).
Environment
- Dependencies are installed into a
uv-managed virtualenv at.venvby the startup update script (uvitself is installed viapip install --break-system-packages uvand lives in~/.local/bin, which is on PATH for interactive shells via~/.bashrc). - The install faithfully uses pinned versions from
requirements.lock, excluding the-e file:.editable line andpywin32; the package is then installed editable with--no-deps. - Run Python via the venv interpreter:
.venv/bin/python.
Lint / test / build
- There is no lint config, no test suite, and no build step in this repo (no ruff/flake8, no pytest, no CI). Don't invent one unless asked.
pyproject.tomluseshatchlingas the build backend; there is nothing to "build" for dev.
Running / verifying
- The interactive tool (
cd src/xlsx_clean && python clean_cells.py) needs Windows + Excel and will fail on import here — do not expect it to run on the VM. - To sanity-check the environment on Linux, verify imports and the package:
.venv/bin/python -c "import pandas, beaupy; from xlsx_clean import hello; print(hello())". - Note: the
uv-created.venvdoes not includepip; useuv pip ...for package operations.