From b9573605c735cb08b2fe538ef9dfee4d6cb47c4b Mon Sep 17 00:00:00 2001 From: Onuralp SEZER Date: Wed, 15 Nov 2023 17:01:57 +0300 Subject: [PATCH] =?UTF-8?q?fix(test):=20=F0=9F=A7=AA=20pre-commit's=20whit?= =?UTF-8?q?espace=20exclude=20and=20test=20case=20fix=20for=20whiespace?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Onuralp SEZER --- .pre-commit-config.yaml | 1 + pyproject.toml | 2 -- test/utils/test_file.py | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 28d135ae..4ae65d64 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,6 +11,7 @@ repos: hooks: - id: end-of-file-fixer - id: trailing-whitespace + exclude: test/.*\.py - id: check-yaml - id: check-docstring-first - id: check-executables-have-shebangs diff --git a/pyproject.toml b/pyproject.toml index 57a586ba..f0c7ff4d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -82,7 +82,6 @@ extend-ignore = """ per-file-ignores = """ __init__.py: F401 supervision/assets/list.py: E501 - test/utils/test_file.py: W291 """ [tool.isort] @@ -173,7 +172,6 @@ convention = "google" [tool.ruff.per-file-ignores] "__init__.py" = ["E402","F401"] "supervision/assets/list.py" = ["E501"] -"test/utils/test_file.py" = ["W291"] [tool.ruff.pylint] diff --git a/test/utils/test_file.py b/test/utils/test_file.py index 681665c8..7a8dd37f 100644 --- a/test/utils/test_file.py +++ b/test/utils/test_file.py @@ -11,12 +11,12 @@ Line 2 Line 3 """ -FILE_2_CONTENT = """ +FILE_2_CONTENT = """ Line 2 Line 4 -""" +""" # noqa FILE_3_CONTENT = """ Line 2