1
0
Fork 0

Merging upstream version 2.5.11.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-12 22:05:33 +01:00
parent 28198bc144
commit 1860fcb092
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
3 changed files with 8 additions and 6 deletions

View file

@ -1,6 +1,6 @@
repos: repos:
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0 rev: v4.4.0
hooks: hooks:
- id: trailing-whitespace - id: trailing-whitespace
- id: end-of-file-fixer - id: end-of-file-fixer
@ -19,12 +19,12 @@ repos:
- id: reorder-python-imports - id: reorder-python-imports
args: [--py37-plus, --add-import, 'from __future__ import annotations'] args: [--py37-plus, --add-import, 'from __future__ import annotations']
- repo: https://github.com/asottile/add-trailing-comma - repo: https://github.com/asottile/add-trailing-comma
rev: v2.3.0 rev: v2.4.0
hooks: hooks:
- id: add-trailing-comma - id: add-trailing-comma
args: [--py36-plus] args: [--py36-plus]
- repo: https://github.com/asottile/pyupgrade - repo: https://github.com/asottile/pyupgrade
rev: v3.2.2 rev: v3.3.1
hooks: hooks:
- id: pyupgrade - id: pyupgrade
args: [--py37-plus] args: [--py37-plus]
@ -33,11 +33,11 @@ repos:
hooks: hooks:
- id: autopep8 - id: autopep8
- repo: https://github.com/PyCQA/flake8 - repo: https://github.com/PyCQA/flake8
rev: 5.0.4 rev: 6.0.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: v0.990 rev: v0.991
hooks: hooks:
- id: mypy - id: mypy

View file

@ -127,6 +127,7 @@ EXTENSIONS = {
'lr': {'text', 'lektor'}, 'lr': {'text', 'lektor'},
'lua': {'text', 'lua'}, 'lua': {'text', 'lua'},
'm': {'text', 'objective-c'}, 'm': {'text', 'objective-c'},
'make': {'text', 'makefile'},
'manifest': {'text', 'manifest'}, 'manifest': {'text', 'manifest'},
'map': {'text', 'map'}, 'map': {'text', 'map'},
'markdown': {'text', 'markdown'}, 'markdown': {'text', 'markdown'},
@ -267,6 +268,7 @@ EXTENSIONS = {
} }
EXTENSIONS_NEED_BINARY_CHECK = { EXTENSIONS_NEED_BINARY_CHECK = {
'plist': {'plist'}, 'plist': {'plist'},
'ppm': {'image', 'ppm'},
} }
NAMES = { NAMES = {

View file

@ -1,6 +1,6 @@
[metadata] [metadata]
name = identify name = identify
version = 2.5.9 version = 2.5.11
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