Xuehai Pan
fbe6f42dcf
[BE][Easy][8/19] enforce style for empty lines in import segments in test/[k-p]*/ ( #129759 )
...
See https://github.com/pytorch/pytorch/pull/129751#issue-2380881501 . Most changes are auto-generated by linter.
You can review these PRs via:
```bash
git diff --ignore-all-space --ignore-blank-lines HEAD~1
```
Pull Request resolved: https://github.com/pytorch/pytorch/pull/129759
Approved by: https://github.com/justinchuby , https://github.com/ezyang
2024-07-31 02:09:20 +00:00
Jane Xu
71b7182ee2
[skip ci] Set test owner for deploy/package tests ( #66830 )
...
Summary:
Action following https://github.com/pytorch/pytorch/issues/66232
Pull Request resolved: https://github.com/pytorch/pytorch/pull/66830
Reviewed By: albanD
Differential Revision: D31905820
Pulled By: janeyx99
fbshipit-source-id: 9496acc98339d689fa62e18a8781d7344903a64c
2021-10-26 07:49:33 -07:00
Michael Suo
ed4cda0183
[pkg] opt into autoformat
...
Summary: woooo
Test Plan: arc lint --apply-patches --take BLACK --paths-cmd 'hg files -I "caffe2/**/*.py"'
Reviewed By: SplitInfinity
Differential Revision: D28608934
fbshipit-source-id: 7768fed50a87883a95319376c0a6d73a9492bdcc
2021-05-21 15:03:52 -07:00
Sam Estep
75024e228c
Add lint for unqualified type: ignore ( #56290 )
...
Summary:
The other half of https://github.com/pytorch/pytorch/issues/56272 .
Pull Request resolved: https://github.com/pytorch/pytorch/pull/56290
Test Plan:
CI should pass on the tip of this PR, and we know that the lint works because the following CI runs (before this PR was finished) failed:
- https://github.com/pytorch/pytorch/runs/2384511062
- https://github.com/pytorch/pytorch/actions/runs/765036024
Reviewed By: seemethere
Differential Revision: D27867219
Pulled By: samestep
fbshipit-source-id: e648f07b6822867e70833e23ddafe7fb7eaca235
2021-04-21 08:07:23 -07:00
Meghan Lele
7985753421
[package] Add dependency tracing function ( #55167 )
...
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/55167
**Summary**
This commit adds a function that uses `sys.setprofile` to trace the
execution of a callable in order to determine which modules it really
uses. The result of this trace can inform packaging decisions.
**Test Plan**
This commit adds a unit test to `test_analyze.py` that tests this
feature.
Test Plan: Imported from OSS
Reviewed By: jbschlosser
Differential Revision: D27730805
Pulled By: SplitInfinity
fbshipit-source-id: 11802625564513da9a0144904be0d34dbae0f601
2021-04-14 00:06:40 -07:00