Merging upstream version 2.6.5.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
aeeda030fc
commit
9954331ebf
4 changed files with 11 additions and 3 deletions
|
@ -23,7 +23,7 @@ repos:
|
||||||
hooks:
|
hooks:
|
||||||
- id: add-trailing-comma
|
- id: add-trailing-comma
|
||||||
- repo: https://github.com/asottile/pyupgrade
|
- repo: https://github.com/asottile/pyupgrade
|
||||||
rev: v3.19.0
|
rev: v3.19.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: pyupgrade
|
- id: pyupgrade
|
||||||
args: [--py39-plus]
|
args: [--py39-plus]
|
||||||
|
@ -37,6 +37,6 @@ repos:
|
||||||
- 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.13.0
|
rev: v1.14.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: mypy
|
- id: mypy
|
||||||
|
|
|
@ -20,6 +20,7 @@ EXTENSIONS = {
|
||||||
'bib': {'text', 'bib'},
|
'bib': {'text', 'bib'},
|
||||||
'bmp': {'binary', 'image', 'bitmap'},
|
'bmp': {'binary', 'image', 'bitmap'},
|
||||||
'bz2': {'binary', 'bzip2'},
|
'bz2': {'binary', 'bzip2'},
|
||||||
|
'bz3': {'binary', 'bzip3'},
|
||||||
'bzl': {'text', 'bazel'},
|
'bzl': {'text', 'bazel'},
|
||||||
'c': {'text', 'c'},
|
'c': {'text', 'c'},
|
||||||
'c++': {'text', 'c++'},
|
'c++': {'text', 'c++'},
|
||||||
|
@ -86,6 +87,7 @@ EXTENSIONS = {
|
||||||
'geojson': {'text', 'geojson', 'json'},
|
'geojson': {'text', 'geojson', 'json'},
|
||||||
'ggb': {'binary', 'zip', 'ggb'},
|
'ggb': {'binary', 'zip', 'ggb'},
|
||||||
'gif': {'binary', 'image', 'gif'},
|
'gif': {'binary', 'image', 'gif'},
|
||||||
|
'gleam': {'text', 'gleam'},
|
||||||
'go': {'text', 'go'},
|
'go': {'text', 'go'},
|
||||||
'gotmpl': {'text', 'gotmpl'},
|
'gotmpl': {'text', 'gotmpl'},
|
||||||
'gpx': {'text', 'gpx', 'xml'},
|
'gpx': {'text', 'gpx', 'xml'},
|
||||||
|
@ -199,6 +201,8 @@ EXTENSIONS = {
|
||||||
'properties': {'text', 'java-properties'},
|
'properties': {'text', 'java-properties'},
|
||||||
'proto': {'text', 'proto'},
|
'proto': {'text', 'proto'},
|
||||||
'ps1': {'text', 'powershell'},
|
'ps1': {'text', 'powershell'},
|
||||||
|
'psd1': {'text', 'powershell'},
|
||||||
|
'psm1': {'text', 'powershell'},
|
||||||
'pug': {'text', 'pug'},
|
'pug': {'text', 'pug'},
|
||||||
'puml': {'text', 'plantuml'},
|
'puml': {'text', 'plantuml'},
|
||||||
'purs': {'text', 'purescript'},
|
'purs': {'text', 'purescript'},
|
||||||
|
@ -391,6 +395,7 @@ NAMES = {
|
||||||
'setup.cfg': EXTENSIONS['ini'],
|
'setup.cfg': EXTENSIONS['ini'],
|
||||||
'sys.config': EXTENSIONS['erl'],
|
'sys.config': EXTENSIONS['erl'],
|
||||||
'sys.config.src': EXTENSIONS['erl'],
|
'sys.config.src': EXTENSIONS['erl'],
|
||||||
|
'Tiltfile': {'text', 'tiltfile'},
|
||||||
'Vagrantfile': EXTENSIONS['rb'],
|
'Vagrantfile': EXTENSIONS['rb'],
|
||||||
'WORKSPACE': EXTENSIONS['bzl'],
|
'WORKSPACE': EXTENSIONS['bzl'],
|
||||||
'wscript': EXTENSIONS['py'],
|
'wscript': EXTENSIONS['py'],
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[metadata]
|
[metadata]
|
||||||
name = identify
|
name = identify
|
||||||
version = 2.6.3
|
version = 2.6.5
|
||||||
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
|
||||||
|
|
|
@ -172,6 +172,9 @@ def test_tags_from_path_plist_text(tmpdir):
|
||||||
('meson.build', {'text', 'meson'}),
|
('meson.build', {'text', 'meson'}),
|
||||||
('meson_options.txt', {'text', 'plain-text', 'meson'}),
|
('meson_options.txt', {'text', 'plain-text', 'meson'}),
|
||||||
('Vagrantfile', {'text', 'ruby'}),
|
('Vagrantfile', {'text', 'ruby'}),
|
||||||
|
('Tiltfile', {'text', 'tiltfile'}),
|
||||||
|
('Tiltfile.abc', {'text', 'tiltfile'}),
|
||||||
|
('test.Tiltfile', {'text', 'tiltfile'}),
|
||||||
|
|
||||||
# does not set binary / text
|
# does not set binary / text
|
||||||
('f.plist', {'plist'}),
|
('f.plist', {'plist'}),
|
||||||
|
|
Loading…
Add table
Reference in a new issue