-
Notifications
You must be signed in to change notification settings - Fork 32
docs: Update Flash docs for .flashignore deprecation and built-in ignore patterns #588
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -52,6 +52,21 @@ Comma-separated list of packages to exclude from the build (e.g., `torch,torchvi | |
| 5. **Dependency installation**: Installs Python packages for Linux x86_64. | ||
| 6. **Packaging**: Bundles everything into `.flash/artifact.tar.gz`. | ||
|
|
||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Citation: Built-in ignore patterns extracted from the new |
||
| ## Built-in ignore patterns | ||
|
|
||
| Flash automatically excludes certain files and directories from deployment artifacts. These patterns cover common development files that shouldn't be deployed to production. | ||
|
|
||
| | Category | Patterns | | ||
| |----------|----------| | ||
| | Build artifacts | `.build/`, `.flash/`, `.runpod/`, `*.tar.gz`, `.git/`, `__pycache__/`, `*.pyc`, `*.pyo`, `*.pyd`, `*.egg-info/`, `dist/`, `build/` | | ||
| | Virtual environments | `.venv/`, `venv/`, `env/` | | ||
| | IDE files | `.vscode/`, `.idea/` | | ||
| | Environment files | `.env`, `.env.*` | | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Citation: Updated from |
||
| | Tests | `tests/`, `test_*.py`, `*_test.py` | | ||
| | Documentation | `docs/`, `*.md` (except `README.md`) | | ||
|
|
||
| Flash also respects your `.gitignore` file and excludes any files matching those patterns. | ||
|
|
||
| ## Build artifacts | ||
|
|
||
| After running `flash build`: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Line 82)
Citation: Deprecation note based on the PR description: "Add deprecation warning for users who still have a
.flashignorefile, guiding them to migrate custom patterns to.gitignore."View source