Skip to content

Commit cfb60b3

Browse files
committed
chore: pre-commit fixes
1 parent c87de16 commit cfb60b3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ repos:
1616
rev: v5.0.0
1717
hooks:
1818
- id: trailing-whitespace
19-
exclude: .importlinter|tests/unit/verticals/secret/output/snapshots/*|tests/unit/core/scan/test_commit_utils.py
19+
exclude: \.importlinter|tests/unit/verticals/secret/output/snapshots/.*|tests/unit/core/scan/test_commit_utils.py
2020
- id: check-json
2121
- id: check-added-large-files
2222
- id: check-yaml

tests/functional/utils_create_merge_repo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ def generate_repo_with_merge_commit(
138138
file_size,
139139
nb_files_per_commit,
140140
0,
141-
f"Commit master n°{i+1}",
142-
file_prefix=f"file-master-{i+1}",
141+
f"Commit master n°{i + 1}",
142+
file_prefix=f"file-master-{i + 1}",
143143
)
144144
# Pick one of the files of HEAD commit at random
145145
files_last_commit = repo.git(*["diff", "--name-only", "HEAD~1"]).splitlines()

tests/unit/cmd/scan/test_prereceive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ def test_stdin_input_deletion(
360360
result = cli_fs_runner.invoke(
361361
cli,
362362
["-v", "secret", "scan", "pre-receive"],
363-
input=f"{'a'*40} {EMPTY_SHA} main",
363+
input=f"{'a' * 40} {EMPTY_SHA} main",
364364
)
365365
assert_invoke_ok(result)
366366
assert "Deletion event or nothing to scan.\n" in result.output

0 commit comments

Comments
 (0)