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