Skip to content

Support remaining identify file types. #88

@BenjaminMummery

Description

@BenjaminMummery

Pre-commit uses the identify library to determine whether a hook cares about a specific file type. We should match this.

Step 1: Support all languages covered by identify.

Language to be added file extension(s) Notes
UNASIGNED .cfg .cnf .conf
asciidoc .adoc .asciidoc
aspectj .aj
apinotes .apinotes
avro-schema .avsc
bash .bash .bats
bat .bat
bazel .bazel .bzl
beancount .beancount
bib .bib
c .c
c++ .c++ .c++m .cc .ccm .cpp .cppm .cxx .cxxm .h .hh .hhp .hxx .inl .ino .ixx may be supported, check edditional extensions.
c2hs .chs
clojure .clj .cljc .cljs .edn
cmake .cmake
coffee .coffee
crystal .cr
pem .crt
c# .cs supported
csproj .csproj
csh .csh
cson .cson
css .css supported
csv .csv
cuda .cu ,cuh
cue .cue
cylc .cylc
dart .dart supported
dbc .dbc
def .def
dtd .dtd
erb .erb
erlang .erlang
elixir .ex .exs .hrl
fortran .f03 .f08 .f90 .f95
fish .fish
gdscript .gd
gherkin .feature
go .go
gotmpl .gotmpl
graphql .graphql
groovy .gradle .groovy
gyb .gyb
handlebars .hbs
haskell .hs
html .htm .html .html is supported, check .htm
hcl .hcl
icalendar .ics
IDL .idl
idris .idr .lidr
inc .inc
ini .ini .lektorproject
inx .inx
jade .jade
Java .java
Javascript .js .cjs partially supported, check exts
Jenkins .jenkins .jenkinsfile
jinja .j2 .jinja .jinja2
json .geojson .json .jsonld
jsonnet .jsonnet .libsonnet
json5 .json5
jsx .jsx
julia .jl
jupyter .ipynb (json)
kotlin .kt .kts .kt is supported
lazarus .lfm
lean .lean
less .less
literate-haskell .lhs
liquid .liquid
pem .key
python .gyp .gypi
ruby .gemspec
xml .gpx .kml
yaml .eyaml

Step 2: Gracefully handle files we can't identify.

Step 3: Update the pre-commit setup so the hook runs on all text? files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions