Maggie Moss
|
d1a6e006e0
|
Fix syntax for pyrefly errors (#166496)
Last one! This ensures all existing suppressions match the syntax expected and will silence only one error code
pyrefly check
lintrunner
Pull Request resolved: https://github.com/pytorch/pytorch/pull/166496
Approved by: https://github.com/Skylion007, https://github.com/mlazos
|
2025-10-29 20:00:25 +00:00 |
|
Maggie Moss
|
b13cd141b3
|
Add pyrefly suppressions (#164748)
Adds suppressions to pyrefly will typecheck clean: https://github.com/pytorch/pytorch/issues/163283
Test plan:
dmypy restart && python3 scripts/lintrunner.py -a
pyrefly check
step 1: delete lines in the pyrefly.toml file from the `project-excludes` field
step 2: run pyrefly check
step 3: add suppressions, clean up unused suppressions
before: https://gist.github.com/maggiemoss/4b3bf2037014e116bc00706a16aef199
after:
0 errors (4,263 ignored)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/164748
Approved by: https://github.com/oulgen
|
2025-10-07 17:31:18 +00:00 |
|
Xuehai Pan
|
abbd71d29d
|
[BE][Easy] enable PYFMT for torch.fx (#138443)
Reproduce command:
```bash
ghstack checkout https://github.com/pytorch/pytorch/pull/138443
git checkout HEAD~1 torch/
lintrunner -a --take "PYFMT" --all-files
```
Pull Request resolved: https://github.com/pytorch/pytorch/pull/138443
Approved by: https://github.com/ezyang
|
2024-10-21 19:15:49 +00:00 |
|
Randolf Scholz
|
679cdf606a
|
Converted __all__ literal tuple to literal list. (#132404)
Partial Fix for #131765.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/132404
Approved by: https://github.com/soulitzer
|
2024-08-06 15:12:32 +00:00 |
|
Aaron Orenstein
|
038b927590
|
Flip default value for mypy disallow_untyped_defs [7/11] (#127844)
See #127836 for details.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/127844
Approved by: https://github.com/oulgen
ghstack dependencies: #127842, #127843
|
2024-06-08 18:49:45 +00:00 |
|
Justin Chu
|
4cc1745b13
|
[BE] f-stringify torch/ and scripts (#105538)
This PR is a follow up on the pyupgrade series to convert more strings to use f-strings using `flynt`.
- https://docs.python.org/3/reference/lexical_analysis.html#f-strings
- https://pypi.org/project/flynt/
Command used:
```
flynt torch/ -ll 120
flynt scripts/ -ll 120
flynt tools/ -ll 120
```
and excluded `collect_env.py`
Pull Request resolved: https://github.com/pytorch/pytorch/pull/105538
Approved by: https://github.com/ezyang, https://github.com/malfet
|
2023-07-21 19:35:24 +00:00 |
|
joncrall
|
ad782ff7df
|
Enable xdoctest runner in CI for real this time (#83816)
Builds on #83317 and enables running the doctests. Just need to figure out what is causing the failures.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/83816
Approved by: https://github.com/ezyang, https://github.com/malfet
|
2022-12-29 05:32:42 +00:00 |
|
Zeina Migeed
|
4bd54cebe0
|
Refinement types and unification for symbolic shape inference (#61776)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/61776
Test Plan: Imported from OSS
Reviewed By: iramazanli
Differential Revision: D29772537
Pulled By: migeed-z
fbshipit-source-id: 3555d43152a213087c64faa326432f1628eb3bb1
|
2021-08-04 17:34:29 -07:00 |
|