Skip to content

Commit f31b373

Browse files
authored
Merge pull request #5447 from jhlegarreta/MiscFixesCommitMsgHookScript
STYLE: Miscellaneous fixes to commit msg hook script
2 parents 0b79fd0 + f67f5c4 commit f31b373

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

Utilities/Hooks/kw-commit-msg.py

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,29 @@
11
#!/usr/bin/env python3
2+
# ==========================================================================
3+
#
4+
# Copyright NumFOCUS
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# https://www.apache.org/licenses/LICENSE-2.0.txt
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
18+
# ==========================================================================
19+
220
import os
3-
import sys
4-
import subprocess
521
import re
22+
import subprocess
23+
import sys
624

725
from pathlib import Path
8-
import textwrap
26+
927

1028
DEFAULT_LINE_LENGTH: int = 78
1129

0 commit comments

Comments
 (0)