1
0
Fork 0

Merging upstream version 2.5.27.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-13 05:34:32 +01:00
parent 0f70833b8e
commit 55c0912297
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
4 changed files with 8 additions and 6 deletions

View file

@ -19,11 +19,11 @@ repos:
- id: reorder-python-imports - id: reorder-python-imports
args: [--py38-plus, --add-import, 'from __future__ import annotations'] args: [--py38-plus, --add-import, 'from __future__ import annotations']
- repo: https://github.com/asottile/add-trailing-comma - repo: https://github.com/asottile/add-trailing-comma
rev: v3.0.0 rev: v3.0.1
hooks: hooks:
- id: add-trailing-comma - id: add-trailing-comma
- repo: https://github.com/asottile/pyupgrade - repo: https://github.com/asottile/pyupgrade
rev: v3.9.0 rev: v3.10.1
hooks: hooks:
- id: pyupgrade - id: pyupgrade
args: [--py38-plus] args: [--py38-plus]
@ -32,11 +32,11 @@ repos:
hooks: hooks:
- id: autopep8 - id: autopep8
- repo: https://github.com/PyCQA/flake8 - repo: https://github.com/PyCQA/flake8
rev: 6.0.0 rev: 6.1.0
hooks: hooks:
- id: flake8 - id: flake8
exclude: ^identify/vendor/licenses\.py$ exclude: ^identify/vendor/licenses\.py$
- repo: https://github.com/pre-commit/mirrors-mypy - repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.4.1 rev: v1.5.0
hooks: hooks:
- id: mypy - id: mypy

View file

@ -10,6 +10,7 @@ EXTENSIONS = {
'bash': {'text', 'shell', 'bash'}, 'bash': {'text', 'shell', 'bash'},
'bat': {'text', 'batch'}, 'bat': {'text', 'batch'},
'bats': {'text', 'shell', 'bash', 'bats'}, 'bats': {'text', 'shell', 'bash', 'bats'},
'bazel': {'text', 'bazel'},
'beancount': {'text', 'beancount'}, 'beancount': {'text', 'beancount'},
'bib': {'text', 'bib'}, 'bib': {'text', 'bib'},
'bmp': {'binary', 'image', 'bitmap'}, 'bmp': {'binary', 'image', 'bitmap'},
@ -326,10 +327,10 @@ NAMES = {
'.zshenv': EXTENSIONS['zsh'], '.zshenv': EXTENSIONS['zsh'],
'AUTHORS': EXTENSIONS['txt'], 'AUTHORS': EXTENSIONS['txt'],
'BUILD': EXTENSIONS['bzl'], 'BUILD': EXTENSIONS['bzl'],
'BUILD.bazel': EXTENSIONS['bzl'],
'CMakeLists.txt': EXTENSIONS['cmake'], 'CMakeLists.txt': EXTENSIONS['cmake'],
'CHANGELOG': EXTENSIONS['txt'], 'CHANGELOG': EXTENSIONS['txt'],
'config.ru': EXTENSIONS['rb'], 'config.ru': EXTENSIONS['rb'],
'Containerfile': {'text', 'dockerfile'},
'CONTRIBUTING': EXTENSIONS['txt'], 'CONTRIBUTING': EXTENSIONS['txt'],
'COPYING': EXTENSIONS['txt'], 'COPYING': EXTENSIONS['txt'],
'Dockerfile': {'text', 'dockerfile'}, 'Dockerfile': {'text', 'dockerfile'},

View file

@ -1,6 +1,6 @@
[metadata] [metadata]
name = identify name = identify
version = 2.5.26 version = 2.5.27
description = File identification library for Python description = File identification library for Python
long_description = file: README.md long_description = file: README.md
long_description_content_type = text/markdown long_description_content_type = text/markdown

View file

@ -154,6 +154,7 @@ def test_tags_from_path_plist_text(tmpdir):
('test.py', {'text', 'python'}), ('test.py', {'text', 'python'}),
('test.mk', {'text', 'makefile'}), ('test.mk', {'text', 'makefile'}),
('Makefile', {'text', 'makefile'}), ('Makefile', {'text', 'makefile'}),
('Containerfile', {'text', 'dockerfile'}),
('Dockerfile', {'text', 'dockerfile'}), ('Dockerfile', {'text', 'dockerfile'}),
('Dockerfile.xenial', {'text', 'dockerfile'}), ('Dockerfile.xenial', {'text', 'dockerfile'}),
('xenial.Dockerfile', {'text', 'dockerfile'}), ('xenial.Dockerfile', {'text', 'dockerfile'}),