mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-15 01:51:46 +04:00
Add file classification package
This commit is contained in:
parent
b1e6063e12
commit
464ac233dd
7 changed files with 324 additions and 0 deletions
6
pre_commit/file_classifier/interpreters.py
Normal file
6
pre_commit/file_classifier/interpreters.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
KNOWN_INTERPRETERS = [
|
||||
('^python([23](\.[0-9]+)?)?$', ['python']),
|
||||
('^(ba|da|tc|[ckz])?sh$', ['shell']),
|
||||
('^ruby$', ['ruby']),
|
||||
('^node(js)?$', ['javascript']),
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue