From 9e4447ad4ccb3f7f8dbdae72d9f790bb0e540c5c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 31 Mar 2021 09:42:20 +0200 Subject: Merging upstream version 2.2.2. Signed-off-by: Daniel Baumann --- .pre-commit-config.yaml | 4 ++-- identify/extensions.py | 5 +++++ setup.cfg | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bb59eb7..4d952e1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,7 +21,7 @@ repos: exclude: ^identify/vendor/licenses\.py$ additional_dependencies: [flake8-typing-imports==1.10.1] - repo: https://github.com/pre-commit/mirrors-autopep8 - rev: v1.5.5 + rev: v1.5.6 hooks: - id: autopep8 - repo: https://github.com/asottile/reorder_python_imports @@ -35,7 +35,7 @@ repos: - id: add-trailing-comma args: [--py36-plus] - repo: https://github.com/asottile/pyupgrade - rev: v2.10.0 + rev: v2.11.0 hooks: - id: pyupgrade args: [--py36-plus] diff --git a/identify/extensions.py b/identify/extensions.py index d5a1627..0fc0d8f 100644 --- a/identify/extensions.py +++ b/identify/extensions.py @@ -32,6 +32,7 @@ EXTENSIONS = { 'cxx': {'text', 'c++'}, 'dart': {'text', 'dart'}, 'def': {'text', 'def'}, + 'dll': {'binary'}, 'dtd': {'text', 'dtd'}, 'ear': {'binary', 'zip', 'jar'}, 'edn': {'text', 'clojure', 'edn'}, @@ -252,7 +253,11 @@ NAMES = { '.pypirc': EXTENSIONS['ini'] | {'pypirc'}, '.rstcheck.cfg': EXTENSIONS['ini'], '.yamllint': EXTENSIONS['yaml'] | {'yamllint'}, + '.zlogin': EXTENSIONS['zsh'], + '.zlogout': EXTENSIONS['zsh'], + '.zprofile': EXTENSIONS['zsh'], '.zshrc': EXTENSIONS['zsh'], + '.zshenv': EXTENSIONS['zsh'], 'AUTHORS': EXTENSIONS['txt'], 'BUILD': {'text', 'bazel'}, 'BUILD.bazel': {'text', 'bazel'}, diff --git a/setup.cfg b/setup.cfg index 65104a5..3fdbf02 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = identify -version = 2.2.0 +version = 2.2.2 description = File identification library for Python long_description = file: README.md long_description_content_type = text/markdown -- cgit v1.2.3