1
0
Fork 0

Merging upstream version 2.6.5.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-13 05:41:10 +01:00
parent aeeda030fc
commit 9954331ebf
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
4 changed files with 11 additions and 3 deletions

View file

@ -23,7 +23,7 @@ repos:
hooks:
- id: add-trailing-comma
- repo: https://github.com/asottile/pyupgrade
rev: v3.19.0
rev: v3.19.1
hooks:
- id: pyupgrade
args: [--py39-plus]
@ -37,6 +37,6 @@ repos:
- id: flake8
exclude: ^identify/vendor/licenses\.py$
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0
rev: v1.14.0
hooks:
- id: mypy

View file

@ -20,6 +20,7 @@ EXTENSIONS = {
'bib': {'text', 'bib'},
'bmp': {'binary', 'image', 'bitmap'},
'bz2': {'binary', 'bzip2'},
'bz3': {'binary', 'bzip3'},
'bzl': {'text', 'bazel'},
'c': {'text', 'c'},
'c++': {'text', 'c++'},
@ -86,6 +87,7 @@ EXTENSIONS = {
'geojson': {'text', 'geojson', 'json'},
'ggb': {'binary', 'zip', 'ggb'},
'gif': {'binary', 'image', 'gif'},
'gleam': {'text', 'gleam'},
'go': {'text', 'go'},
'gotmpl': {'text', 'gotmpl'},
'gpx': {'text', 'gpx', 'xml'},
@ -199,6 +201,8 @@ EXTENSIONS = {
'properties': {'text', 'java-properties'},
'proto': {'text', 'proto'},
'ps1': {'text', 'powershell'},
'psd1': {'text', 'powershell'},
'psm1': {'text', 'powershell'},
'pug': {'text', 'pug'},
'puml': {'text', 'plantuml'},
'purs': {'text', 'purescript'},
@ -391,6 +395,7 @@ NAMES = {
'setup.cfg': EXTENSIONS['ini'],
'sys.config': EXTENSIONS['erl'],
'sys.config.src': EXTENSIONS['erl'],
'Tiltfile': {'text', 'tiltfile'},
'Vagrantfile': EXTENSIONS['rb'],
'WORKSPACE': EXTENSIONS['bzl'],
'wscript': EXTENSIONS['py'],

View file

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

View file

@ -172,6 +172,9 @@ def test_tags_from_path_plist_text(tmpdir):
('meson.build', {'text', 'meson'}),
('meson_options.txt', {'text', 'plain-text', 'meson'}),
('Vagrantfile', {'text', 'ruby'}),
('Tiltfile', {'text', 'tiltfile'}),
('Tiltfile.abc', {'text', 'tiltfile'}),
('test.Tiltfile', {'text', 'tiltfile'}),
# does not set binary / text
('f.plist', {'plist'}),