Skip to content

Add .devcontainer for GitHub Codespaces support#3567

Merged
vfdev-5 merged 2 commits intopytorch:masterfrom
steaphenai:add-devcontainer
Feb 21, 2026
Merged

Add .devcontainer for GitHub Codespaces support#3567
vfdev-5 merged 2 commits intopytorch:masterfrom
steaphenai:add-devcontainer

Conversation

@steaphenai
Copy link
Copy Markdown
Contributor

Fixes #3565

Description:
Added .devcontainer/devcontainer.json to support GitHub Codespaces and VS Code Dev Containers. Contributors can now get fully configured development environment automatically with Python 3.11, dev dependencies, pre-commit hooks, and ruff/black extensions pre-configured.

Check list:

  • New tests are added (if a new feature is added)
  • New doc strings: description and/or example code are in RST format
  • Documentation is updated (if required)

@vfdev-5
Copy link
Copy Markdown
Collaborator

vfdev-5 commented Feb 21, 2026

@aaishwarymishra can you please review this PR?

@aaishwarymishra
Copy link
Copy Markdown
Collaborator

@vfdev-5 do you think we should install stuff for docs like katex etc too or user can install them when working on docs?

@vfdev-5
Copy link
Copy Markdown
Collaborator

vfdev-5 commented Feb 21, 2026

@vfdev-5 do you think we should install stuff for docs like katex etc too or user can install them when working on docs?

I think the second option (users install manually) is fine

@aaishwarymishra
Copy link
Copy Markdown
Collaborator

aaishwarymishra commented Feb 21, 2026

@steaphenai I think by accident you applied old changes again. Also can you squash the commits.

Update .devcontainer/devcontainer.json

Co-authored-by: Aaishwarya Mishra <[email protected]>

Update .devcontainer/devcontainer.json

Co-authored-by: Aaishwarya Mishra <[email protected]>

Update .devcontainer/devcontainer.json

Co-authored-by: Aaishwarya Mishra <[email protected]>

Apply review suggestions

Apply review suggestions
@aaishwarymishra
Copy link
Copy Markdown
Collaborator

@vfdev-5 it looks good I think it could be merged

Copy link
Copy Markdown
Collaborator

@vfdev-5 vfdev-5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution @steaphenai
And for the review @aaishwarymishra !

Copy link
Copy Markdown
Collaborator

@vfdev-5 vfdev-5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm, thank !

@vfdev-5 vfdev-5 enabled auto-merge February 21, 2026 18:19
@vfdev-5 vfdev-5 disabled auto-merge February 21, 2026 18:19
@vfdev-5 vfdev-5 merged commit 18c7193 into pytorch:master Feb 21, 2026
7 checks passed
@steaphenai steaphenai deleted the add-devcontainer branch February 21, 2026 18:28
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.

[Feature]: Adding a .devcontainer directory with all the necessary configuration for the GitHub codespaces.

3 participants