Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ repos:
args: ["--branch", "master", "--branch", "beta", "--branch", "rc"]
# Checks that large files have not been added. Default cut-off for "large" files is 500kb.
- id: check-added-large-files
# POFiles and TTF fonts can't be made smaller
exclude_types: ["pofile", "ttf"]
# POFiles, TTF fonts, and xliff files can't be made smaller
exclude_types: ["pofile", "ttf", ".xliff"]
Copy link

Copilot AI Jan 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The exclude_types syntax is incorrect. The 'identify' library used by pre-commit recognizes file types without the leading dot. According to the pattern used for 'pofile' and 'ttf' (which also don't have dots), this should be 'xliff' instead of '.xliff'. The leading dot will prevent the exclusion from working correctly, and xliff files will still be checked for size, causing the pre-commit hook to fail.

Suggested change
exclude_types: ["pofile", "ttf", ".xliff"]
exclude_types: ["pofile", "ttf", "xliff"]

Copilot uses AI. Check for mistakes.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

xliff isn't here I'll have to use exclude instead possibly

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

# Same applies for NVDA dictionary (.dic) files and Spline Font Database (.SFD) files, but these aren't recognised by the Identify library.
exclude: "\\.(dic|sfd)$"
# Checks python syntax
Expand Down
Loading