Files
pytorch/AGENTS.md
Oguz Ulgen 13ec55d15b Update AGENTS.md (#168111)
Fixes #ISSUE_NUMBER

Pull Request resolved: https://github.com/pytorch/pytorch/pull/168111
Approved by: https://github.com/ezyang
2025-11-19 04:33:07 +00:00

1.0 KiB

  • This is the only AGENTS.md, there are no recursive AGENTS.md
  • When you are working on a bug, first create a standalone file that reproduces the bug and verify it fails in the expected way. Use this to test if your changes work. Once the change is passing, find an appropriate test file to add the test to and make sure to follow local conventions on the test file.
  • If you are running the real test suite, DO NOT run the entire test suite. Instead run only a single test case, e.g., 'python test/test_torch.py TestTorch.test_dir'
  • Do NOT run setup.py, you do not have a working build environment
  • Do NOT run pre-commit, it is not setup
  • To run lint, run 'lintrunner -a' (which will autoapply changes)
  • Do NOT attempt to install dependencies, you do not have Internet access
  • Do NOT create summary files unless explicitly asked
  • When you are ready to make a PR, do exactly these steps:
    • git stash -u
    • git reset --hard $(cat /tmp/orig_work.txt) # NB: reset to the LOCAL branch, do NOT fetch
    • git stash pop
    • Resolve conflicts if necessary