Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Add NewFlaskProject template and creator - #2060

Open
Tanu Saini (saini16tanu) wants to merge 1 commit into
microsoft:mainfrom
saini16tanu:feat/flask-project-creator
Open

Tanu Saini (saini16tanu) wants to merge 1 commit into
microsoft:mainfrom
saini16tanu:feat/flask-project-creator

Conversation

@saini16tanu

Copy link
Copy Markdown

Fixes #397

What changed

  • Added a new NewFlaskProject project creator in src/features/creators/newFlaskProject.ts.
  • Added a newFlaskTemplate folder under files/templates/newFlaskTemplate/ with app.py, pyproject.toml, and tests/test_app.py.
  • Added files/templates/copilot-instructions-text/flask-copilot-instructions.md for Flask run and test commands.
  • Registered NewFlaskProject and added 'python-flask' support in src/extension.ts.
  • Added unit tests in src/test/features/creators/newFlaskProject.unit.test.ts.

Why

This lets users create a starter Flask project directly from the Python Environments extension, matching the existing Package and Script project creators.

How it was tested

  • Ran npm run compile (passed).
  • Ran npm run compile-tests (passed).
  • Ran npm run lint (passed).
  • Ran Mocha unit tests for newFlaskTemplate / NewFlaskProject and newInlineScriptTemplate / NewScriptProject (21 passing), and full unit test suite (3575 passing, 0 failing, 12 pending).

I used AI tools to understand the code and help with the change. I reviewed and tested it myself.

@saini16tanu

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New Project: Flask

1 participant