diff --git a/.github/workflows/pre-commit-run.yml b/.github/workflows/pre-commit-run.yml index 5916b94..ca2f7f6 100644 --- a/.github/workflows/pre-commit-run.yml +++ b/.github/workflows/pre-commit-run.yml @@ -41,4 +41,4 @@ jobs: - name: Run pre-commit on all files run: |- - pre-commit run --all-files + pre-commit run --all-files --show-diff-on-failure diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 88d2a39..9590939 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,7 +14,7 @@ repos: exclude: '\.wxf$' - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.8.5 + rev: v0.9.0 hooks: - id: ruff args: diff --git a/xiangqi_setup/__main__.py b/xiangqi_setup/__main__.py index 384e52d..284ea70 100644 --- a/xiangqi_setup/__main__.py +++ b/xiangqi_setup/__main__.py @@ -206,7 +206,7 @@ def main(): dest="width_centimeter", metavar="CENTIMETER", type=float, - help=("width of the output in centimeters" f" (default: {_DEFAULT_WIDTH_CM})"), + help=(f"width of the output in centimeters (default: {_DEFAULT_WIDTH_CM})"), ) scaling_options.add_argument( "--dpi", @@ -214,7 +214,7 @@ def main(): metavar="FLOAT", type=float, default=_DEFAULT_RESOLUTION_DPI, - help=("resolution of the output in dots per inch" " (default: %(default)s)"), + help=("resolution of the output in dots per inch (default: %(default)s)"), ) scaling_options.add_argument( "--scale-pieces",