diff options
-rw-r--r-- | .pre-commit-config.yaml | 2 | ||||
-rw-r--r-- | identify/extensions.py | 4 | ||||
-rw-r--r-- | setup.cfg | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 49ebe49..cb71927 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,7 +25,7 @@ repos: hooks: - id: autopep8 - repo: https://github.com/asottile/reorder_python_imports - rev: v2.6.0 + rev: v2.7.1 hooks: - id: reorder-python-imports args: [--py37-plus, --add-import, 'from __future__ import annotations'] diff --git a/identify/extensions.py b/identify/extensions.py index b5b9293..417352d 100644 --- a/identify/extensions.py +++ b/identify/extensions.py @@ -18,6 +18,7 @@ EXTENSIONS = { 'cc': {'text', 'c++'}, 'cfg': {'text'}, 'chs': {'text', 'c2hs'}, + 'cjs': {'text', 'javascript'}, 'clj': {'text', 'clojure'}, 'cljc': {'text', 'clojure'}, 'cljs': {'text', 'clojure', 'clojurescript'}, @@ -66,6 +67,7 @@ EXTENSIONS = { 'gypi': {'text', 'gyp', 'python'}, 'gz': {'binary', 'gzip'}, 'h': {'text', 'header', 'c', 'c++'}, + 'hbs': {'text', 'handlebars'}, 'hcl': {'text', 'hcl'}, 'hh': {'text', 'header', 'c++'}, 'hpp': {'text', 'header', 'c++'}, @@ -108,6 +110,7 @@ EXTENSIONS = { 'lhs': {'text', 'literate-haskell'}, 'libsonnet': {'text', 'jsonnet'}, 'lidr': {'text', 'idris'}, + 'liquid': {'text', 'liquid'}, 'lr': {'text', 'lektor'}, 'lua': {'text', 'lua'}, 'm': {'text', 'c', 'objective-c'}, @@ -129,6 +132,7 @@ EXTENSIONS = { 'nims': {'text', 'nim'}, 'nimble': {'text', 'nimble'}, 'nix': {'text', 'nix'}, + 'njk': {'text', 'nunjucks'}, 'otf': {'binary', 'otf'}, 'p12': {'binary', 'p12'}, 'patch': {'text', 'diff'}, @@ -1,6 +1,6 @@ [metadata] name = identify -version = 2.4.6 +version = 2.4.8 description = File identification library for Python long_description = file: README.md long_description_content_type = text/markdown |