chore: ignore compiled artifacts and untrack Numba cache #2

Merged
pa77y merged 1 commit from chore/ignore-compiled-artifacts into main 2026-10-19 03:44:58 -05:00
Collaborator

What this does

Numba writes its JIT cache (.nbi / .nbc) next to the module, and those files are specific to the local Python / numba / LLVM version. The 64 cache files committed under strategies/utilities/__pycache__/ were therefore pure noise - they churn on every run on any machine that is not byte-identical to the one that produced them.

This commit:

  1. Untracks all 64 files under strategies/utilities/__pycache__/.
  2. Extends .gitignore with rules covering:
    • Python bytecode and tool caches (__pycache__/, *.py[cod], .pytest_cache/, .ruff_cache/, .mypy_cache/)
    • Numba caches (*.nbi, *.nbc)
    • Compiled extensions and build output (*.so, *.pyd, *.dll, *.dylib, *.o, *.a, *.egg-info/, build/, dist/)
    • Virtualenvs (.venv/, venv/)

Notes for review

  • No source, strategy, config, or data file is touched - the only non-deletion change is .gitignore (+27 lines).
  • The deleted files are not Git LFS objects (.gitattributes only tracks *.feather, *.parquet, *.json.gz, *.zip, *.pkl, *.pickle, *.joblib, *.h5), so removing them does not affect LFS data.
  • Verified after checkout: git status is clean and git status --ignored correctly lists strategies/__pycache__/ and strategies/utilities/__pycache__/ as ignored, so the new rules take effect.
  • Branch is based on current main (75fab80), no rebase needed.

Created by an AI agent (OpenHands) on behalf of the user.

## What this does Numba writes its JIT cache (`.nbi` / `.nbc`) next to the module, and those files are specific to the local Python / numba / LLVM version. The 64 cache files committed under `strategies/utilities/__pycache__/` were therefore pure noise - they churn on every run on any machine that is not byte-identical to the one that produced them. This commit: 1. Untracks all 64 files under `strategies/utilities/__pycache__/`. 2. Extends `.gitignore` with rules covering: * Python bytecode and tool caches (`__pycache__/`, `*.py[cod]`, `.pytest_cache/`, `.ruff_cache/`, `.mypy_cache/`) * Numba caches (`*.nbi`, `*.nbc`) * Compiled extensions and build output (`*.so`, `*.pyd`, `*.dll`, `*.dylib`, `*.o`, `*.a`, `*.egg-info/`, `build/`, `dist/`) * Virtualenvs (`.venv/`, `venv/`) ## Notes for review * No source, strategy, config, or data file is touched - the only non-deletion change is `.gitignore` (+27 lines). * The deleted files are **not** Git LFS objects (`.gitattributes` only tracks `*.feather`, `*.parquet`, `*.json.gz`, `*.zip`, `*.pkl`, `*.pickle`, `*.joblib`, `*.h5`), so removing them does not affect LFS data. * Verified after checkout: `git status` is clean and `git status --ignored` correctly lists `strategies/__pycache__/` and `strategies/utilities/__pycache__/` as ignored, so the new rules take effect. * Branch is based on current `main` (`75fab80`), no rebase needed. _Created by an AI agent (OpenHands) on behalf of the user._
Numba writes .nbi/.nbc JIT caches next to the module and they are specific
to the local Python/numba/LLVM version, so the 64 committed cache files under
strategies/utilities/__pycache__ were noise. Untrack them and add ignore rules
covering Python bytecode, Numba caches, compiled extensions, build output,
tool caches, and virtualenvs.

Co-authored-by: openhands <openhands@all-hands.dev>
pa77y approved these changes 2026-10-19 03:44:44 -05:00
pa77y merged commit d7d6b00574 into main 2026-10-19 03:44:58 -05:00
pa77y deleted branch chore/ignore-compiled-artifacts 2026-10-19 03:44:58 -05:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
pa77y/freqtrade_strategies!2
No description provided.