Skip to content

Commit 1e496b0

Browse files
committed
Fix linter error and exclude test assets from linting
1 parent de3f2af commit 1e496b0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ repos:
33
rev: v4.6.0
44
hooks:
55
- id: trailing-whitespace
6+
exclude: ^tests/?.*/assets/.+
67
- id: end-of-file-fixer
8+
exclude: ^tests/?.*/assets/.+
79
- repo: https://github.com/astral-sh/ruff-pre-commit
810
rev: v0.11.7
911
hooks:

tests/unit/entrypoints/test_display_entrypoint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def test_display_entrypoint_yaml(capfd, get_test_asset_dir):
3232

3333

3434
def generic_test_display_entrypoint(filename, capfd, get_test_asset_dir):
35-
os.environ['COLUMNS'] = "120" # CLI output depends on terminal width.
35+
os.environ["COLUMNS"] = "120" # CLI output depends on terminal width.
3636
asset_dir = get_test_asset_dir()
3737
display_benchmarks_report(asset_dir / filename)
3838
out, err = capfd.readouterr()

0 commit comments

Comments
 (0)