Edward Z. Yang
f70844bec7
Enable UFMT on a bunch of low traffic Python files outside of main files ( #106052 )
...
Signed-off-by: Edward Z. Yang <ezyang@meta.com>
Pull Request resolved: https://github.com/pytorch/pytorch/pull/106052
Approved by: https://github.com/albanD , https://github.com/Skylion007
2023-07-27 01:01:17 +00:00
Justin Chu
14d87bb5ff
[BE] Enable ruff's UP rules and autoformat tools and scripts ( #105428 )
...
Pull Request resolved: https://github.com/pytorch/pytorch/pull/105428
Approved by: https://github.com/albanD , https://github.com/soulitzer , https://github.com/malfet
2023-07-19 01:24:44 +00:00
Shen Li
1022443168
Revert D30279364: [codemod][lint][fbcode/c*] Enable BLACK by default
...
Test Plan: revert-hammer
Differential Revision:
D30279364 (b004307252 )
Original commit changeset: c1ed77dfe43a
fbshipit-source-id: eab50857675c51e0088391af06ec0ecb14e2347e
2021-08-12 11:45:01 -07:00
Zsolt Dollenstein
b004307252
[codemod][lint][fbcode/c*] Enable BLACK by default
...
Test Plan: manual inspection & sandcastle
Reviewed By: zertosh
Differential Revision: D30279364
fbshipit-source-id: c1ed77dfe43a3bde358f92737cd5535ae5d13c9a
2021-08-12 10:58:35 -07:00
Richard Barnes
e606e60331
[Needs Review] Convert some files to Python3 ( #49351 )
...
Summary:
Uses the Python standard library 2to3 script to convert a number of Python 2 files to Python 3. This facilitates code maintenance such as dropping unused imports in D25500422.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/49351
Test Plan: Standard sandcastle tests
Reviewed By: xush6528
Differential Revision: D25499576
fbshipit-source-id: 0c44718ac734771ce0758b1cb30676cc3d76ac10
2021-01-06 10:48:16 -08:00
Tim Hatch
7fcfed19e7
Fix interpreter lines for files with python2-only syntax.
...
Reviewed By: lisroach
Differential Revision: D15362271
fbshipit-source-id: 48fab12ab6e55a8537b19b4623d2545ca9950ec5
2019-07-09 10:51:43 -07:00
Orion Reblitz-Richardson
9e2001683e
Move doc generation code into docs/caffe2. ( #2435 )
2018-03-26 21:07:40 -07:00