asottile / add-trailing-comma

A tool (and pre-commit hook) to automatically add trailing commas to calls and literals.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Possible to ignore files (e.g., with glob pattern)?

brylie opened this issue · comments

I have a large Django project with auto-generated migrations. Ignoring the migrations files in my pre-commit task for adding trailing commas would be nice since I'm not particularly concerned about the auto-generated formatting.

Is it possible to ignore particular files, such as using a glob pattern?

exclude: