diff options
-rw-r--r-- | .pre-commit-config.yaml | 8 | ||||
-rw-r--r-- | identify/extensions.py | 6 | ||||
-rw-r--r-- | setup.cfg | 2 |
3 files changed, 11 insertions, 5 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 93b245a..e852425 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,7 +19,7 @@ repos: - id: reorder-python-imports args: [--py38-plus, --add-import, 'from __future__ import annotations'] - repo: https://github.com/asottile/add-trailing-comma - rev: v3.0.1 + rev: v3.1.0 hooks: - id: add-trailing-comma - repo: https://github.com/asottile/pyupgrade @@ -27,8 +27,8 @@ repos: hooks: - id: pyupgrade args: [--py38-plus] -- repo: https://github.com/pre-commit/mirrors-autopep8 - rev: v2.0.2 +- repo: https://github.com/hhatto/autopep8 + rev: v2.0.4 hooks: - id: autopep8 - repo: https://github.com/PyCQA/flake8 @@ -37,6 +37,6 @@ repos: - id: flake8 exclude: ^identify/vendor/licenses\.py$ - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.5.0 + rev: v1.5.1 hooks: - id: mypy diff --git a/identify/extensions.py b/identify/extensions.py index 4202ada..fbaf71a 100644 --- a/identify/extensions.py +++ b/identify/extensions.py @@ -17,7 +17,10 @@ EXTENSIONS = { 'bz2': {'binary', 'bzip2'}, 'bzl': {'text', 'bazel'}, 'c': {'text', 'c'}, + 'c++': {'text', 'c++'}, + 'c++m': {'text', 'c++'}, 'cc': {'text', 'c++'}, + 'ccm': {'text', 'c++'}, 'cfg': {'text'}, 'chs': {'text', 'c2hs'}, 'cjs': {'text', 'javascript'}, @@ -29,6 +32,7 @@ EXTENSIONS = { 'coffee': {'text', 'coffee'}, 'conf': {'text'}, 'cpp': {'text', 'c++'}, + 'cppm': {'text', 'c++'}, 'cr': {'text', 'crystal'}, 'crt': {'text', 'pem'}, 'cs': {'text', 'c#'}, @@ -41,6 +45,7 @@ EXTENSIONS = { 'cue': {'text', 'cue'}, 'cuh': {'text', 'cuda'}, 'cxx': {'text', 'c++'}, + 'cxxm': {'text', 'c++'}, 'cylc': {'text', 'cylc'}, 'dart': {'text', 'dart'}, 'dbc': {'text', 'dbc'}, @@ -101,6 +106,7 @@ EXTENSIONS = { 'ino': {'text', 'ino', 'c++'}, 'inx': {'text', 'xml', 'inx'}, 'ipynb': {'text', 'jupyter', 'json'}, + 'ixx': {'text', 'c++'}, 'j2': {'text', 'jinja'}, 'jade': {'text', 'jade'}, 'jar': {'binary', 'zip', 'jar'}, @@ -1,6 +1,6 @@ [metadata] name = identify -version = 2.5.27 +version = 2.5.28 description = File identification library for Python long_description = file: README.md long_description_content_type = text/markdown |