Add linting rule exceptions for test_file.py

Added linting rule exceptions for 'test/utils/test_file.py' in 'pyproject.toml'. Specifically, the 'W291' error which checks for trailing whitespace is ignored for this test file. This is necessary to test whether 'read_txt_file' function in 'test_utils.py' correctly ignores trailing whitespaces in varies test scenarios.
This commit is contained in:
SkalskiP
2023-11-10 10:25:59 -08:00
parent 6211139201
commit 95f4b5c0b8
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -82,6 +82,7 @@ extend-ignore = """
per-file-ignores = """
__init__.py: F401
supervision/assets/list.py: E501
test/utils/test_file.py: W291
"""
[tool.isort]
@@ -172,6 +173,7 @@ 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]
max-args = 20
+1 -1
View File
@@ -11,7 +11,7 @@ Line 2
Line 3
"""
FILE_2_CONTENT = """
FILE_2_CONTENT = """
Line 2
Line 4