Skip to content

Commit

Permalink
build: Fix pylint errors
Browse files Browse the repository at this point in the history
MoritzWeber0 committed Oct 10, 2023

Verified

This commit was signed with the committer’s verified signature.
MoritzWeber0 Moritz Weber
1 parent 08770f7 commit 4cb1413
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions capella_git_hooks/fix_links.py
Original file line number Diff line number Diff line change
@@ -12,6 +12,7 @@
from capellambse.loader import exs
from lxml import etree as ET

# pylint: disable=line-too-long
root_pattern = re.compile(
r"(index:/).*\.(capella|aird)#[0-9a-f]{8}\b-[0-9a-f]{4}\b-[0-9a-f]{4}\b-[0-9a-f]{4}\b-[0-9a-f]{12}"
)
@@ -88,9 +89,9 @@ def fix_xml(path: str) -> bool:
return changed


def commit_changes(changed_files: list[str]):
def commit_changes(changed_files_to_be_committed: list[str]):
"""Add and commit the provided list of files using a predefined message."""
subprocess.call(["git", "add"] + changed_files)
subprocess.call(["git", "add"] + changed_files_to_be_committed)
subprocess.call(
["git", "commit", "-m", "fix[by-script]: merge tool index-prefix"]
)

0 comments on commit 4cb1413

Please sign in to comment.