From 515fd01c9d9bdff341d97e25a3100efe6496bcc8 Mon Sep 17 00:00:00 2001 From: moto <855818+mthrok@users.noreply.github.com> Date: Wed, 6 Jul 2022 17:31:39 -0700 Subject: [PATCH] Update lint config (#2389) Summary: Following the formatter changes heppened in fbcode, this commit update the linter config. Pull Request resolved: https://github.com/pytorch/audio/pull/2389 Reviewed By: hwangjeff Differential Revision: D37659649 Pulled By: mthrok fbshipit-source-id: 1c52ff93f0b10cb2e7303d2ad13b2d65ffccfcb0 --- .circleci/config.yml | 2 +- .circleci/config.yml.in | 2 +- .pre-commit-config.yaml | 8 +++++--- docs/source/hw_acceleration_tutorial.ipynb | 2 +- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index b3a5b6cdb7..f0a464ccba 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -118,7 +118,7 @@ jobs: command: pre-commit install-hooks - run: name: Lint Python code and config files - command: pre-commit run --all-files || true + command: pre-commit run --all-files - run: name: Required lint modifications when: always diff --git a/.circleci/config.yml.in b/.circleci/config.yml.in index 438469d00a..e096b1ef66 100644 --- a/.circleci/config.yml.in +++ b/.circleci/config.yml.in @@ -118,7 +118,7 @@ jobs: command: pre-commit install-hooks - run: name: Lint Python code and config files - command: pre-commit run --all-files || true + command: pre-commit run --all-files - run: name: Required lint modifications when: always diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cbddd74ff4..cf9a6d523f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,9 +9,11 @@ repos: - id: end-of-file-fixer - repo: https://github.com/omnilib/ufmt - rev: v1.3.0 + rev: v1.3.2 hooks: - id: ufmt additional_dependencies: - - black == 21.9b0 - - usort == 0.6.4 + - black == 22.3 + - usort == 1.0.2 + - libcst == 0.4.1 + exclude: examples diff --git a/docs/source/hw_acceleration_tutorial.ipynb b/docs/source/hw_acceleration_tutorial.ipynb index dd2f94129d..1b45424854 100644 --- a/docs/source/hw_acceleration_tutorial.ipynb +++ b/docs/source/hw_acceleration_tutorial.ipynb @@ -1524,4 +1524,4 @@ }, "nbformat": 4, "nbformat_minor": 0 -} \ No newline at end of file +}