From 4575bf8deba16f618253f953f3799fe3b8bcaa87 Mon Sep 17 00:00:00 2001 From: Diego Urgell Date: Tue, 2 Apr 2024 12:58:14 -0700 Subject: [PATCH] Fix GitHub pre-commit check (#173) Summary: Pull Request resolved: https://github.com/pytorch/torchsnapshot/pull/173 Differential Revision: D55625861 --- .flake8 | 2 +- .pre-commit-config.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.flake8 b/.flake8 index 3367fb9..b64ee39 100644 --- a/.flake8 +++ b/.flake8 @@ -5,7 +5,7 @@ max-line-length = 120 # C408 ignored because we like the dict keyword argument syntax # E501 is not flexible enough, we're using B950 instead ignore = - E203,E305,E402,E501,E721,E741,F405,F821,F841,F999,W503,W504,C408,E302,W291,E303, + E203,E305,E402,E501,E704,E721,E741,F405,F821,F841,F999,W503,W504,C408,E302,W291,E303, # shebang has extra meaning in fbcode lints, so I think it's not worth trying # to line this up with executable bit EXE001, diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3c67d34..1635fff 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -29,9 +29,9 @@ repos: - --config=.flake8 - repo: https://github.com/omnilib/ufmt - rev: v1.3.0 + rev: v2.5.1 hooks: - id: ufmt additional_dependencies: - - black == 22.3.0 + - black == 24.2.0 - usort == 1.0.2