Skip to content

Commit ef9ac10

Browse files
committed
refactor(test_bump_command): rename camel case variables
1 parent 84a2118 commit ef9ac10

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_bump_command.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
from commitizen import cli, cmd, git
1313

1414

15-
def ReadOnlyException(Exception):
15+
class ReadOnlyException(Exception):
1616
pass
1717

1818

1919
# https://stackoverflow.com/questions/1213706/what-user-do-python-scripts-run-as-in-windows
20-
def handleRemoveReadOnly(func, path, exc):
20+
def handle_remove_read_only(func, path, exc):
2121
excvalue = exc[1]
2222
if func in (os.rmdir, os.remove, shutil.rmtree) and excvalue.errno == errno.EACCESS:
2323
os.chmod(path, stat.S_IRWXU | stat.S_IRWXG | stat.IRWXO) # 744
@@ -36,7 +36,7 @@ def create_project():
3636
os.chdir(full_tmp_path)
3737
yield
3838
os.chdir(current_directory)
39-
shutil.rmtree(full_tmp_path, handleRemoveReadOnly)
39+
shutil.rmtree(full_tmp_path, handle_remove_read_only)
4040

4141

4242
def create_file_and_commit(message: str, filename: Optional[str] = None):

0 commit comments

Comments
 (0)