From 549826bff8a76c253fd28240dd304e512f262274 Mon Sep 17 00:00:00 2001 From: yaozengwei Date: Fri, 8 Apr 2022 16:59:21 +0800 Subject: [PATCH] exclude black check for icefall/__init__.py in pyproject.toml. --- .pre-commit-config.yaml | 2 ++ icefall/__init__.py | 1 + pyproject.toml | 1 + 3 files changed, 4 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b59784dbf..446ba0fe7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,6 +4,8 @@ repos: hooks: - id: black args: [--line-length=80] + additional_dependencies: ['click==8.0.1'] + exclude: icefall\/__init__\.py - repo: https://github.com/PyCQA/flake8 rev: 3.9.2 diff --git a/icefall/__init__.py b/icefall/__init__.py index ef5b2c705..ec77e89b5 100644 --- a/icefall/__init__.py +++ b/icefall/__init__.py @@ -1,4 +1,5 @@ # isort:skip_file + from . import ( checkpoint, decode, diff --git a/pyproject.toml b/pyproject.toml index ec5623f90..b4f8c3377 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,4 +10,5 @@ exclude = ''' | \.github )/ | make_kn_lm.py + | icefall\/__init__\.py '''