* improving development environment and instructions
* minor edits as requested
* fix typo in DEVELOPMENT.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Add Dockerfile for devcontainer with Rust and UV setup
* Update devcontainer configuration to use Dockerfile and enhance features
- Switch from using a pre-built image to building from a Dockerfile.
- Replace Poetry feature with Hadolint for linting Dockerfiles.
- Add new VSCode extensions: Ruff, Autodocstring, Indent Rainbow, and Hadolint.
- Set default terminal profile to zsh in VSCode settings.
- Add a postStartCommand to initialize the environment.
- Change remote user to 'vscode'.
* Update test command in VSCode tasks to 'make unit_tests'
* chore: remove unnecessary comment
---------
Co-authored-by: italojohnny <italojohnnydosanjos@gmail.com>
* feat: Allow variables to be defined outside a Component
Fixes#4315
Modify `prepare_global_scope` function in `src/backend/base/langflow/utils/validate.py` to evaluate classes, functions, and variables defined outside the Component's class.
* **Function Changes:**
- Add evaluation of external classes using `ast.ClassDef`.
- Add evaluation of external functions using `ast.FunctionDef`.
- Add evaluation of external variables using `ast.Assign`.
* **Unit Tests:**
- Add tests in `src/backend/tests/unit/test_validate_code.py` to verify the evaluation of external classes, functions, and variables.
- Include tests for multiple external classes and external variables and functions.
---
For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/langflow-ai/langflow/issues/4315?shareId=XXXX-XXXX-XXXX-XXXX).
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>