Skip to content

Commit e384fae

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent e31319b commit e384fae

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

pre_commit_hooks/check_dco.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
This is a pure Python implementation with no external dependencies —
88
only the standard library is used (``re``, ``sys``).
99
"""
10-
1110
from __future__ import annotations
1211

1312
import argparse
@@ -32,7 +31,7 @@ def check_dco(commit_msg_path: str) -> tuple[int, list[str]]:
3231
3332
Returns (exit_code, diagnostic_messages).
3433
"""
35-
with open(commit_msg_path, 'r', encoding='utf-8') as f:
34+
with open(commit_msg_path, encoding='utf-8') as f:
3635
lines = f.read().splitlines()
3736

3837
errors: list[str] = []

tests/check_dco_test.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
from __future__ import annotations
22

33
import os
4-
import pytest
54
import tempfile
65

7-
from pre_commit_hooks.check_dco import check_dco, main
6+
import pytest
7+
8+
from pre_commit_hooks.check_dco import check_dco
9+
from pre_commit_hooks.check_dco import main
810

911

1012
def _write_commit_msg(content: str) -> str:

0 commit comments

Comments
 (0)