FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat: Update pre-commit configuration and enhance test coverage by shenxianpeng · Pull Request #353 · commit-check/commit-check · GitHub

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (8) .toml  (1) .yaml  (1) All 3 file types selected
Deleted files Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repos:
- id: trailing-whitespace
- id: name-tests-test
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.10
rev: v0.14.14
hooks:
- id: ruff-check
args: [ --fix ]
Expand All @@ -31,7 +31,7 @@ repos:
hooks:
- id: codespell
- repo: https://github.com/commit-check/commit-check
rev: v2.2.1
rev: v2.2.2
hooks:
- id: check-message
stages: [commit-msg]
Expand Down
2 changes: 1 addition & 1 deletion cchk.toml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ ignore_authors = ["dependabot[bot]", "copilot[bot]", "pre-commit-ci[bot]"]
[branch]
# https://conventional-branch.github.io/
conventional_branch = true
allow_branch_types = ["feature", "bugfix", "hotfix", "release", "chore", "feat", "fix"]
allow_branch_types = ["feature", "bugfix", "hotfix", "release", "chore", "feat", "fix", "copilot"]
require_rebase_target = "main"
ignore_authors = ["dependabot[bot]", "copilot[bot]", "pre-commit-ci[bot]", "shenxianpeng"]
4 changes: 2 additions & 2 deletions commit_check/util.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
_toml = None # type: ignore[assignment]


def _find_check(checks: list, check_type: str) -> dict | None:
def _find_check(checks: list, check_type: str) -> Optional[dict]:
"""Return the first check dict matching check_type, else None."""
for check in checks:
if check.get("check") == check_type:
Expand Down Expand Up @@ -254,7 +254,7 @@ def print_error_message(check_type: str, regex: str, error: str, reason: str):
print(error)


def print_suggestion(suggest: str | None) -> None:
def print_suggestion(suggest: Optional[str]) -> None:
"""Print suggestion to user
:param suggest: what message to print out
"""
Expand Down
80 changes: 0 additions & 80 deletions tests/config_edge_test.py

This file was deleted.

65 changes: 0 additions & 65 deletions tests/config_fallback_test.py

This file was deleted.

94 changes: 0 additions & 94 deletions tests/config_import_test.py

This file was deleted.

Loading
Loading

Back | FazBrowse Home | New Git URL