mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
Updates flake8 to v6.1.0 and fixes a few lints using sed and some ruff tooling.
- Replace `assert(0)` with `raise AssertionError()`
- Remove extraneous parenthesis i.e.
- `assert(a == b)` -> `assert a == b`
- `if(x > y or y < z):`->`if x > y or y < z:`
- And `return('...')` -> `return '...'`
Co-authored-by: Nikita Shulga <2453524+malfet@users.noreply.github.com>
Pull Request resolved: https://github.com/pytorch/pytorch/pull/116591
Approved by: https://github.com/albanD, https://github.com/malfet
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_bias_correction_eager.py | ||
| test_equalize_eager.py | ||
| test_fuse_eager.py | ||
| test_model_numerics.py | ||
| test_numeric_suite_eager.py | ||
| test_quantize_eager_ptq.py | ||
| test_quantize_eager_qat.py | ||