summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-02-04 06:29:26 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-02-04 06:29:26 +0000
commit7e7ad7206f551080a9d813b1498ec791ab8ef4e5 (patch)
tree03c17b0acf73b6a07fa2fcc4ca6c2e22295e79ec
parentReleasing debian version 2.4.6-1. (diff)
downloadidentify-7e7ad7206f551080a9d813b1498ec791ab8ef4e5.tar.xz
identify-7e7ad7206f551080a9d813b1498ec791ab8ef4e5.zip
Merging upstream version 2.4.8.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r--.pre-commit-config.yaml2
-rw-r--r--identify/extensions.py4
-rw-r--r--setup.cfg2
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'},
diff --git a/setup.cfg b/setup.cfg
index feb8c7d..c325ec1 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -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