From 329d16cdfd509ea9cfd47e3538e6aaecf367c0b9 Mon Sep 17 00:00:00 2001 From: Bhushan Srivastava <59949692+he11owthere@users.noreply.github.com> Date: Sat, 9 Dec 2023 21:40:04 +0530 Subject: [PATCH] Fixed linter issues (#27454) --- .pre-commit-config.yaml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c4b505a64e319..45178cdf6c7a0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,6 +13,12 @@ repos: language_version: python3 args: - "--preview" + exclude: > + (?x) + ( + ivy/functional/frontends/(?!.*(?:config\.py|__init__\.py)$).* | + ivy_tests/test_ivy/(?!.*(?:__init__\.py|conftest\.py|helpers/.*|test_frontends/config/.*$)).* + ) - repo: https://github.com/PyCQA/autoflake rev: v2.2.1 hooks: @@ -32,7 +38,7 @@ repos: - id: pydocstyle # Exclude everything in frontends except __init__.py, and func_wrapper.py exclude: 'ivy/functional/(frontends|backends)/(?!.*/func_wrapper\.py$).*(?!__init__\.py$)' -# - repo: https://github.com/unifyai/lint-hook -# rev: 2ea80bc854c7f74b09620151028579083ff92ec2 -# hooks: -# - id: ivy-lint + - repo: https://github.com/unifyai/lint-hook + rev: a72ffb17562d919311653d7f593cb537d1245c19 + hooks: + - id: ivy-lint