Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit caaa696

Browse files
committed
refactor(commands/check): remove unused cwd argument
1 parent e2b9789 commit caaa696

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

commitizen/commands/check.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from __future__ import annotations
22

3-
import os
43
import re
54
import sys
65
from typing import Any
@@ -17,13 +16,12 @@
1716
class Check:
1817
"""Check if the current commit msg matches the commitizen format."""
1918

20-
def __init__(self, config: BaseConfig, arguments: dict[str, Any], cwd=os.getcwd()):
19+
def __init__(self, config: BaseConfig, arguments: dict[str, Any]) -> None:
2120
"""Initial check command.
2221
2322
Args:
2423
config: The config object required for the command to perform its action
2524
arguments: All the flags provided by the user
26-
cwd: Current work directory
2725
"""
2826
self.commit_msg_file: str | None = arguments.get("commit_msg_file")
2927
self.commit_msg: str | None = arguments.get("message")

0 commit comments

Comments
 (0)