From 2dbd1ffab3e1b145cb6ca0075094a94407bfaf29 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 4 Feb 2022 07:29:21 +0100 Subject: Adding upstream version 2.4.8. Signed-off-by: Daniel Baumann --- .pre-commit-config.yaml | 2 +- identify/extensions.py | 4 ++++ 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'}, 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 -- cgit v1.2.3