bfiles 2025-02-24
Build system migrated to hatch, bf alias added, and config and exclusion systems refined
10 files · 202+ · 135-

Build system migration

4 files changed
  • pyproject.toml Fully declarative pyproject.toml with hatch build tooling, test scripts, and updated dependencies (attrs>=25.1.0, click>=8.1.8)
  • uv.lock Dependency lock file added for reproducible installs
  • setup.py Removed in favor of declarative pyproject.toml
  • requirements.txt Removed in favor of pyproject.toml dependencies
  • Removed setup.py and requirements.txt in favor of fully declarative pyproject.toml with hatch build tooling baseline internal
    3 files
    • pyproject.toml
    • setup.py
    • requirements.txt
  • Added uv.lock for dependency locking baseline internal
    1 file
    • uv.lock
  • Configured hatch environments with test scripts (pytest, coverage, lint, format) qualify errata
    1 file
    • pyproject.toml
  • Set dependencies to attrs>=25.1.0 and click>=8.1.8 baseline internal
    1 file
    • pyproject.toml
2 files changed
  • bf Short alias shell wrapper script for python3 -m bfiles.cli
  • bfiles Removed old shell wrapper replaced by bf alias

Configuration updates

1 file changed
  • config.py Default output filename changed to bfiles.txt; modern type hints; validate() method added; .bfile(s) excluded by default
  • Changed default output filename from bundle.txt to bfiles.txt decouple behavioral
    1 file
    • config.py
  • Updated default exclusion patterns to also exclude .bfile(s) output files decouple behavioral
    1 file
    • config.py
  • Modernized type hints from List[str] to list[str] specify internal
    1 file
    • config.py
  • Simplified __post_init__ by removing verbose logging and streamlining regex compilation decouple behavioral
    1 file
    • config.py
  • Added validate() method for checking output path existence and log verbosity instantiate behavioral
    1 file
    • config.py

Exclusion engine improvements

1 file changed
  • exclusions.py Enhanced ExclusionManager with better glob vs regex pattern differentiation
  • Enhanced ExclusionManager with better pattern handling for glob vs regex differentiation decouple internal
    1 file
    • exclusions.py
2 files changed
  • bundle.txt Removed accidentally committed bundle output from source tree
  • .gitignore Added .bfile and .bfile.* exclusion patterns
  • Removed accidentally committed bundle.txt output file from source tree decouple behavioral
    1 file
    • bundle.txt
  • Added .bfile and .bfile.* patterns to .gitignore instantiate internal
    1 file
    • .gitignore