commit-check
commit-check
BlogDocsChangelog

feat: add imperative mode

#258Merged
Comparing
feature/imperative-mood
(
c005ce1
) with
main
(
55b000f
)
CodSpeed Performance Gauge
-12%
Regressions
13
Untouched
67
New
24
Dropped
13

Benchmarks

Failed

test_main[argv0-1-0-0-0-0]
tests/main_test.py::TestMain
Missing
CodSpeed Performance Gauge
N/A
5.1 msN/A
test_main[argv5-0-0-0-0-1]
tests/main_test.py::TestMain
Missing
CodSpeed Performance Gauge
N/A
5.1 msN/A
test_main[argv4-0-0-0-1-0]
tests/main_test.py::TestMain
Missing
CodSpeed Performance Gauge
N/A
5.1 msN/A
test_main[argv12-0-0-0-0-0]
tests/main_test.py::TestMain
Missing
CodSpeed Performance Gauge
N/A
4.4 msN/A
test_main[argv1-0-1-0-0-0]
tests/main_test.py::TestMain
Missing
CodSpeed Performance Gauge
N/A
5.1 msN/A
test_main[argv3-0-0-1-0-0]
tests/main_test.py::TestMain
Missing
CodSpeed Performance Gauge
N/A
5.1 msN/A
test_main[argv11-1-1-2-1-1]
tests/main_test.py::TestMain
Missing
CodSpeed Performance Gauge
N/A
6.3 msN/A
test_main[argv2-0-0-1-0-0]
tests/main_test.py::TestMain
Missing
CodSpeed Performance Gauge
N/A
5.1 msN/A
test_main[argv8-0-0-2-0-0]
tests/main_test.py::TestMain
Missing
CodSpeed Performance Gauge
N/A
5.1 msN/A
test_main[argv10-1-1-2-0-0]
tests/main_test.py::TestMain
Missing
CodSpeed Performance Gauge
N/A
5.7 msN/A
test_main[argv9-1-1-1-0-0]
tests/main_test.py::TestMain
Missing
CodSpeed Performance Gauge
N/A
5.7 msN/A
test_main[argv6-1-0-1-0-0]
tests/main_test.py::TestMain
Missing
CodSpeed Performance Gauge
N/A
5.4 msN/A
test_main[argv7-1-1-0-0-0]
tests/main_test.py::TestMain
Missing
CodSpeed Performance Gauge
N/A
5.4 msN/A
test_main_multiple_checks[argv8-0-0-1-1-0-0-1]
tests/main_test.py::TestMain
Regression
CodSpeed Performance Gauge
-11%
4.6 ms5.2 ms
test_main_multiple_checks[argv9-0-0-0-0-0-0-0]
tests/main_test.py::TestMain
Regression
CodSpeed Performance Gauge
-11%
4.8 ms5.4 ms
test_main_multiple_checks[argv10-1-1-1-1-1-1-1]
tests/main_test.py::TestMain
Regression
CodSpeed Performance Gauge
-11%
4.8 ms5.4 ms
test_main_multiple_checks[argv7-0-0-0-1-0-0-1]
tests/main_test.py::TestMain
Regression
CodSpeed Performance Gauge
-12%
4.6 ms5.2 ms
test_main_multiple_checks[argv0-0-0-0-0-0-0-0]
tests/main_test.py::TestMain
Regression
CodSpeed Performance Gauge
-11%
4.5 ms5.1 ms
test_main_multiple_checks[argv2-1-0-0-0-0-0-1]
tests/main_test.py::TestMain
Regression
CodSpeed Performance Gauge
-11%
4.6 ms5.2 ms
test_main_multiple_checks[argv12-1-1-1-1-1-1-0]
tests/main_test.py::TestMain
Regression
CodSpeed Performance Gauge
-11%
4.4 ms5 ms
test_main_multiple_checks[argv6-0-0-1-0-0-0-1]
tests/main_test.py::TestMain
Regression
CodSpeed Performance Gauge
-11%
4.6 ms5.2 ms
test_main_multiple_checks[argv11-1-0-0-0-0-0-1]
tests/main_test.py::TestMain
Regression
CodSpeed Performance Gauge
-11%
4.8 ms5.4 ms
test_main_multiple_checks[argv5-1-0-0-0-0-0-1]
tests/main_test.py::TestMain
Regression
CodSpeed Performance Gauge
-11%
4.6 ms5.2 ms
test_main_multiple_checks[argv1-1-0-0-0-0-0-1]
tests/main_test.py::TestMain
Regression
CodSpeed Performance Gauge
-11%
4.5 ms5.1 ms
test_main_multiple_checks[argv4-0-0-0-0-0-0-0]
tests/main_test.py::TestMain
Regression
CodSpeed Performance Gauge
-11%
4.6 ms5.2 ms
test_main_multiple_checks[argv3-0-0-0-0-1-0-1]
tests/main_test.py::TestMain
Regression
CodSpeed Performance Gauge
-11%
4.6 ms5.2 ms

New

test_check_imperative_different_check_type
tests/commit_test.py
CodSpeed Performance Gauge
N/A
N/A964.3 µs
test_check_imperative_empty_checks
tests/commit_test.py
CodSpeed Performance Gauge
N/A
N/A959.8 µs
test_check_imperative_pass
tests/commit_test.py
CodSpeed Performance Gauge
N/A
N/A1 ms
test_check_imperative_fail_present_continuous
tests/commit_test.py
CodSpeed Performance Gauge
N/A
N/A2.6 ms
test_main[argv1-0-1-0-0-0-0]
tests/main_test.py::TestMain
CodSpeed Performance Gauge
N/A
N/A5.7 ms
test_is_imperative_invalid_cases
tests/commit_test.py
CodSpeed Performance Gauge
N/A
N/A186.6 µs
test_check_imperative_fail_past_tense
tests/commit_test.py
CodSpeed Performance Gauge
N/A
N/A2.6 ms
test_is_imperative_valid_cases
tests/commit_test.py
CodSpeed Performance Gauge
N/A
N/A145.3 µs
test_main[argv11-1-1-2-0-0-0]
tests/main_test.py::TestMain
CodSpeed Performance Gauge
N/A
N/A6.3 ms
test_check_imperative_skip_merge_commit
tests/commit_test.py
CodSpeed Performance Gauge
N/A
N/A1 ms
test_main[argv0-1-0-0-0-0-0]
tests/main_test.py::TestMain
CodSpeed Performance Gauge
N/A
N/A5.7 ms
test_check_imperative_no_commits
tests/commit_test.py
CodSpeed Performance Gauge
N/A
N/A787.2 µs
test_main[argv12-1-1-2-1-1-0]
tests/main_test.py::TestMain
CodSpeed Performance Gauge
N/A
N/A6.9 ms
test_main[argv10-1-1-1-0-0-0]
tests/main_test.py::TestMain
CodSpeed Performance Gauge
N/A
N/A6.3 ms
test_main[argv4-0-0-0-1-0-0]
tests/main_test.py::TestMain
CodSpeed Performance Gauge
N/A
N/A5.7 ms
test_main[argv5-0-0-0-0-1-0]
tests/main_test.py::TestMain
CodSpeed Performance Gauge
N/A
N/A5.7 ms
test_main[argv2-0-0-1-0-0-0]
tests/main_test.py::TestMain
CodSpeed Performance Gauge
N/A
N/A5.7 ms
test_main[argv14-0-0-0-0-0-0]
tests/main_test.py::TestMain
CodSpeed Performance Gauge
N/A
N/A5 ms
test_main[argv6-0-0-0-0-0-1]
tests/main_test.py::TestMain
CodSpeed Performance Gauge
N/A
N/A5.7 ms
test_main[argv13-1-0-0-0-0-1]
tests/main_test.py::TestMain
CodSpeed Performance Gauge
N/A
N/A6 ms
test_main[argv8-1-1-0-0-0-0]
tests/main_test.py::TestMain
CodSpeed Performance Gauge
N/A
N/A6 ms
test_main[argv7-1-0-1-0-0-0]
tests/main_test.py::TestMain
CodSpeed Performance Gauge
N/A
N/A6 ms
test_main[argv9-0-0-2-0-0-0]
tests/main_test.py::TestMain
CodSpeed Performance Gauge
N/A
N/A5.7 ms
test_main[argv3-0-0-1-0-0-0]
tests/main_test.py::TestMain
CodSpeed Performance Gauge
N/A
N/A5.7 ms

Passed

test_check_commit_with_empty_checks
tests/commit_test.py
CodSpeed Performance Gauge
+1%
1.5 ms1.5 ms
test_read_commit_msg_file_not_found
tests/commit_test.py
CodSpeed Performance Gauge
+1%
1.4 ms1.4 ms
test_check_commit_with_different_check
tests/commit_test.py
CodSpeed Performance Gauge
+1%
1.5 ms1.5 ms
test_read_commit_msg_from_existing_file
tests/commit_test.py
CodSpeed Performance Gauge
+1%
243.8 µs242.1 µs
test_check_commit_with_len0_regex
tests/commit_test.py
CodSpeed Performance Gauge
+1%
1.6 ms1.5 ms
test_print_error_message[message-check failed =>]
tests/util_test.py::TestUtil::TestPrintErrorMessage
CodSpeed Performance Gauge
+1%
184.9 µs183.9 µs
test_print_error_message[commit_signoff-check failed =>]
tests/util_test.py::TestUtil::TestPrintErrorMessage
CodSpeed Performance Gauge
0%
181.8 µs180.9 µs
test_print_suggestion
tests/util_test.py::TestUtil::TestPrintSuggestion
CodSpeed Performance Gauge
0%
171.1 µs170.2 µs
test_print_error_message[author_email-check failed =>]
tests/util_test.py::TestUtil::TestPrintErrorMessage
CodSpeed Performance Gauge
0%
181.9 µs181.1 µs
test_get_default_commit_msg_file
tests/commit_test.py
CodSpeed Performance Gauge
0%
507.9 µs505.7 µs
test_cmd_output_err_with_len0_stderr[1-ok-]
tests/util_test.py::TestUtil::TestCmdOutput
CodSpeed Performance Gauge
0%
801.7 µs798.9 µs
test_has_commits_true
tests/util_test.py::TestUtil::TestHasCommits
CodSpeed Performance Gauge
0%
800.5 µs797.8 µs
test_print_error_header
tests/util_test.py::TestUtil::TestPrintErrorMessage
CodSpeed Performance Gauge
0%
229.7 µs228.9 µs
test_print_error_message[branch-check failed =>]
tests/util_test.py::TestUtil::TestPrintErrorMessage
CodSpeed Performance Gauge
0%
181.6 µs181 µs
test_check_commit_signoff_with_empty_checks
tests/commit_test.py
CodSpeed Performance Gauge
0%
1.3 ms1.3 ms
test_check_commit_signoff
tests/commit_test.py
CodSpeed Performance Gauge
0%
3.7 ms3.7 ms
test_get_branch_name
tests/util_test.py::TestUtil::TestGetBranchName
CodSpeed Performance Gauge
0%
804.7 µs802.5 µs
test_cmd_output_err[1-None-err]
tests/util_test.py::TestUtil::TestCmdOutput
CodSpeed Performance Gauge
0%
797.8 µs795.7 µs
test_git_merge_base[128-128]
tests/util_test.py::TestUtil::TestGitMergeBase
CodSpeed Performance Gauge
0%
838.1 µs836.1 µs
test_check_merge_base_with_empty_regex
tests/branch_test.py::TestCheckMergeBase
CodSpeed Performance Gauge
0%
986.8 µs984.5 µs
test_cmd_output_err[1-ok-err]
tests/util_test.py::TestUtil::TestCmdOutput
CodSpeed Performance Gauge
0%
802.1 µs800.2 µs
test_check_merge_base_fail_with_messages
tests/branch_test.py::TestCheckMergeBase
CodSpeed Performance Gauge
0%
3.1 ms3.1 ms
test_check_commit_with_result_none
tests/commit_test.py
CodSpeed Performance Gauge
0%
3.2 ms3.2 ms
test_cmd_output_err_with_len0_stderr[1-None-]
tests/util_test.py::TestUtil::TestCmdOutput
CodSpeed Performance Gauge
0%
797.3 µs795.6 µs
test_print_error_message[author_name-check failed =>]
tests/util_test.py::TestUtil::TestPrintErrorMessage
CodSpeed Performance Gauge
0%
181.6 µs181.2 µs
test_check_merge_base_with_different_check
tests/branch_test.py::TestCheckMergeBase
CodSpeed Performance Gauge
0%
973.3 µs972.1 µs
test_get_commit_info_with_exception
tests/util_test.py::TestUtil::TestGetCommitInfo
CodSpeed Performance Gauge
0%
1.4 ms1.4 ms
test_error_handler_cannot_access
tests/error_test.py
CodSpeed Performance Gauge
0%
7.6 ms7.6 ms
test_check_commit_signoff_with_empty_regex
tests/commit_test.py
CodSpeed Performance Gauge
0%
1.3 ms1.3 ms
test_has_commits_false
tests/util_test.py::TestUtil::TestHasCommits
CodSpeed Performance Gauge
0%
807.2 µs806.5 µs
test_check_author_with_different_check
tests/author_test.py::TestAuthor::TestAuthorName
CodSpeed Performance Gauge
0%
1.5 ms1.5 ms
test_cmd_output
tests/util_test.py::TestUtil::TestCmdOutput
CodSpeed Performance Gauge
0%
796.1 µs795.5 µs
test_check_author_with_empty_checks
tests/author_test.py::TestAuthor::TestAuthorEmail
CodSpeed Performance Gauge
0%
1.5 ms1.5 ms
test_check_merge_base_with_empty_checks
tests/branch_test.py::TestCheckMergeBase
CodSpeed Performance Gauge
0%
973.2 µs972.9 µs
test_get_commit_info[s]
tests/util_test.py::TestUtil::TestGetCommitInfo
CodSpeed Performance Gauge
0%
1.4 ms1.4 ms
test_check_author_with_len0_regex
tests/author_test.py::TestAuthor::TestAuthorEmail
CodSpeed Performance Gauge
0%
1.6 ms1.6 ms
test_validate_config
tests/util_test.py::TestUtil::TestValidateConfig
CodSpeed Performance Gauge
0%
2.4 ms2.4 ms
test_cmd_output_err_with_len0_stderr[0-None-]
tests/util_test.py::TestUtil::TestCmdOutput
CodSpeed Performance Gauge
0%
797.3 µs797.4 µs
test_error_handler_KeyboardInterrupt
tests/error_test.py
CodSpeed Performance Gauge
0%
1.7 ms1.7 ms
test_get_commit_info_no_commits
tests/util_test.py::TestUtil::TestGetCommitInfo
CodSpeed Performance Gauge
0%
1.3 ms1.3 ms
test_git_merge_base[0-0]
tests/util_test.py::TestUtil::TestGitMergeBase
CodSpeed Performance Gauge
0%
1.1 ms1.1 ms
test_get_commit_info[ae]
tests/util_test.py::TestUtil::TestGetCommitInfo
CodSpeed Performance Gauge
0%
1.4 ms1.4 ms
test_get_commit_info[an]
tests/util_test.py::TestUtil::TestGetCommitInfo
CodSpeed Performance Gauge
0%
1.4 ms1.4 ms
test_check_author_with_accented_letters
tests/author_test.py::TestAuthor::TestAuthorName
CodSpeed Performance Gauge
0%
1.6 ms1.6 ms
test_git_merge_base[1-1]
tests/util_test.py::TestUtil::TestGitMergeBase
CodSpeed Performance Gauge
0%
1.1 ms1.1 ms
test_check_author
tests/author_test.py::TestAuthor::TestAuthorEmail
CodSpeed Performance Gauge
0%
1.6 ms1.6 ms
test_get_branch_name_with_exception
tests/util_test.py::TestUtil::TestGetBranchName
CodSpeed Performance Gauge
0%
815.3 µs816.1 µs
test_check_author_with_result_none
tests/author_test.py::TestAuthor::TestAuthorEmail
CodSpeed Performance Gauge
0%
3.2 ms3.2 ms
test_check_branch
tests/branch_test.py::TestCheckBranch
CodSpeed Performance Gauge
0%
1.4 ms1.4 ms
test_cmd_output_err[0-None-err]
tests/util_test.py::TestUtil::TestCmdOutput
CodSpeed Performance Gauge
0%
797.7 µs798.7 µs
test_check_author_with_different_check
tests/author_test.py::TestAuthor::TestAuthorEmail
CodSpeed Performance Gauge
0%
1.5 ms1.5 ms
test_check_author_with_empty_checks
tests/author_test.py::TestAuthor::TestAuthorName
CodSpeed Performance Gauge
0%
1.5 ms1.5 ms
test_check_author_with_result_none
tests/author_test.py::TestAuthor::TestAuthorName
CodSpeed Performance Gauge
0%
3.2 ms3.2 ms
test_check_branch_with_result_none
tests/branch_test.py::TestCheckBranch
CodSpeed Performance Gauge
0%
3 ms3 ms
test_check_author_with_len0_regex
tests/author_test.py::TestAuthor::TestAuthorName
CodSpeed Performance Gauge
0%
1.6 ms1.6 ms
test_check_author
tests/author_test.py::TestAuthor::TestAuthorName
CodSpeed Performance Gauge
0%
1.6 ms1.6 ms
test_error_handler_RuntimeError
tests/error_test.py
CodSpeed Performance Gauge
0%
1.8 ms1.8 ms
test_check_branch_with_len0_regex
tests/branch_test.py::TestCheckBranch
CodSpeed Performance Gauge
0%
1.4 ms1.4 ms
test_check_commit_msg_no_commit_msg_file
tests/commit_test.py
CodSpeed Performance Gauge
0%
1.6 ms1.6 ms
test_check_branch_with_different_check
tests/branch_test.py::TestCheckBranch
CodSpeed Performance Gauge
0%
1.3 ms1.3 ms
test_check_branch_with_empty_checks
tests/branch_test.py::TestCheckBranch
CodSpeed Performance Gauge
0%
1.3 ms1.3 ms
test_validate_config_file_not_found
tests/util_test.py::TestUtil::TestValidateConfig
CodSpeed Performance Gauge
0%
1.3 ms1.3 ms
test_error_handler_unexpected_error
tests/error_test.py
CodSpeed Performance Gauge
0%
1.7 ms1.7 ms
test_print_suggestion_exit1
tests/util_test.py::TestUtil::TestPrintSuggestion
CodSpeed Performance Gauge
0%
206.8 µs207.8 µs
test_main_validate_config_ret_none
tests/main_test.py::TestMain
CodSpeed Performance Gauge
-2%
5 ms5.1 ms
test_main_version
tests/main_test.py::TestMain
CodSpeed Performance Gauge
-2%
4.5 ms4.6 ms
test_main_help
tests/main_test.py::TestMain
CodSpeed Performance Gauge
-2%
5.8 ms5.9 ms

Commits

Click on a commit to change the comparison range
Base
main
55b000f
-11.54%
feat: add impreative mode
b356f9a
4 months ago
by shenxianpeng
-0.05%
feat: introduce imperatives.py file
fd82d87
4 months ago
by shenxianpeng
+0.08%
chore: rename to --imperative
fce69c1
4 months ago
by shenxianpeng
-0.1%
chore: rename to --imperative
fdb6de9
4 months ago
by shenxianpeng
+0.09%
chore: fix docs formatting
5b3151e
4 months ago
by shenxianpeng
0%
feat: add check imperative hook
c005ce1
4 months ago
by shenxianpeng
© 2025 CodSpeed Technology
Home Terms Privacy Docs