Skip to content

Add support for *.cmd#573

Merged
asottile merged 1 commit intopre-commit:mainfrom
petamas:add-cmd
Feb 20, 2026
Merged

Add support for *.cmd#573
asottile merged 1 commit intopre-commit:mainfrom
petamas:add-cmd

Conversation

@petamas
Copy link
Contributor

@petamas petamas commented Feb 10, 2026

.cmd is an alternative extension for Windows batch files (.bat), with some minor behavioural differences:

The only other format to use this extension is the CP/M executable format, but I don't think too many of that are present in the wild these days: https://en.wikipedia.org/wiki/CMD_file_(CP/M)

I've found no other source of ambiguity.

@asottile asottile merged commit 6aef98d into pre-commit:main Feb 20, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments