From f67696f45e90261f9566cc38253db55583b46c37 Mon Sep 17 00:00:00 2001 From: Sergii Dymchenko Date: Tue, 21 Nov 2023 03:46:24 +0000 Subject: [PATCH] Update TorchFix to 0.2.0 (#114190) Pull Request resolved: https://github.com/pytorch/pytorch/pull/114190 Approved by: https://github.com/malfet --- .flake8 | 3 +++ .github/workflows/docker-builds.yml | 2 ++ .lintrunner.toml | 2 +- requirements-flake8.txt | 2 +- 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.flake8 b/.flake8 index 8341a1e28b47..bca578ce563e 100644 --- a/.flake8 +++ b/.flake8 @@ -26,6 +26,9 @@ ignore = # TorchFix codes that don't make sense for PyTorch itself: # removed and deprecated PyTorch functions. TOR001,TOR101, + # TODO(kit1980): fix all TOR102 issues + # `torch.load` without `weights_only` parameter is unsafe + TOR102, per-file-ignores = __init__.py: F401 torch/utils/cpp_extension.py: B950 diff --git a/.github/workflows/docker-builds.yml b/.github/workflows/docker-builds.yml index 1651f0042639..68da02743656 100644 --- a/.github/workflows/docker-builds.yml +++ b/.github/workflows/docker-builds.yml @@ -6,6 +6,7 @@ on: paths: - .ci/docker/** - .github/workflows/docker-builds.yml + - .lintrunner.toml push: branches: - main @@ -14,6 +15,7 @@ on: paths: - .ci/docker/** - .github/workflows/docker-builds.yml + - .lintrunner.toml schedule: - cron: 1 3 * * 3 diff --git a/.lintrunner.toml b/.lintrunner.toml index 856e1b909031..d2ccb509c2dc 100644 --- a/.lintrunner.toml +++ b/.lintrunner.toml @@ -48,7 +48,7 @@ init_command = [ 'mccabe==0.7.0', 'pycodestyle==2.10.0', 'pyflakes==3.0.1', - 'torchfix==0.1.1', + 'torchfix==0.2.0', ] diff --git a/requirements-flake8.txt b/requirements-flake8.txt index f0d5e6f600f6..dc289b4e036f 100644 --- a/requirements-flake8.txt +++ b/requirements-flake8.txt @@ -8,4 +8,4 @@ flake8-pyi==20.5.0 mccabe==0.6.1 pycodestyle==2.6.0 pyflakes==2.2.0 -torchfix==0.1.1 +torchfix==0.2.0