- Replace argparse with click in all scripts (train, server, generate, preprocess, benchmark) - Add --config YAML support to train.py with CLI flag override - Add --dry-run mode to validate config before training - Add type annotations throughout benchmark.py - Unify docstring format across all commands - Remove redundant deps httpx, requests, pyyaml, rich from pyproject.toml - Net -346 lines while adding YAML config support
38 lines
536 B
Plaintext
38 lines
536 B
Plaintext
# Ignore everything
|
|
*
|
|
|
|
# Allow directories to be traversed
|
|
!*/
|
|
|
|
# Allow specific file types and root files
|
|
!astrai/**/*.py
|
|
!scripts/**/*.py
|
|
!tests/**/*.py
|
|
!csrc/**/*.py
|
|
|
|
!csrc/**/*.cu
|
|
!csrc/**/*.h
|
|
!csrc/**/*.cuh
|
|
|
|
!scripts/**/*.sh
|
|
|
|
# Allow GitHub files
|
|
!/.github/**
|
|
|
|
# Allow root files
|
|
!/.gitattributes
|
|
!/.dockerignore
|
|
!/Dockerfile
|
|
!/docker-compose.yml
|
|
!/assets/**
|
|
!/CONTRIBUTING.md
|
|
!/LICENSE
|
|
!/pyproject.toml
|
|
!/README.md
|
|
!/AGENTS.md
|
|
# Allow extension modules (only source .py)
|
|
!/astrai/extension/**/*.py
|
|
|
|
# Allow build files
|
|
!/setup.py
|