Merging upstream version 2.5.33.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
debb2d98f8
commit
542e2de114
4 changed files with 8 additions and 2 deletions
|
@ -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.6.1
|
rev: v1.7.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: mypy
|
- id: mypy
|
||||||
|
|
|
@ -7,6 +7,7 @@ EXTENSIONS = {
|
||||||
'apinotes': {'text', 'apinotes'},
|
'apinotes': {'text', 'apinotes'},
|
||||||
'asar': {'binary', 'asar'},
|
'asar': {'binary', 'asar'},
|
||||||
'avif': {'binary', 'image', 'avif'},
|
'avif': {'binary', 'image', 'avif'},
|
||||||
|
'avsc': {'text', 'avro-schema'},
|
||||||
'bash': {'text', 'shell', 'bash'},
|
'bash': {'text', 'shell', 'bash'},
|
||||||
'bat': {'text', 'batch'},
|
'bat': {'text', 'batch'},
|
||||||
'bats': {'text', 'shell', 'bash', 'bats'},
|
'bats': {'text', 'shell', 'bash', 'bats'},
|
||||||
|
@ -196,6 +197,7 @@ EXTENSIONS = {
|
||||||
'py': {'text', 'python'},
|
'py': {'text', 'python'},
|
||||||
'pyi': {'text', 'pyi'},
|
'pyi': {'text', 'pyi'},
|
||||||
'pyproj': {'text', 'xml', 'pyproj'},
|
'pyproj': {'text', 'xml', 'pyproj'},
|
||||||
|
'pyt': {'text', 'python'},
|
||||||
'pyx': {'text', 'cython'},
|
'pyx': {'text', 'cython'},
|
||||||
'pyz': {'binary', 'pyz'},
|
'pyz': {'binary', 'pyz'},
|
||||||
'pyzw': {'binary', 'pyz'},
|
'pyzw': {'binary', 'pyz'},
|
||||||
|
@ -328,6 +330,7 @@ NAMES = {
|
||||||
'.prettierignore': {'text', 'gitignore', 'prettierignore'},
|
'.prettierignore': {'text', 'gitignore', 'prettierignore'},
|
||||||
'.pypirc': EXTENSIONS['ini'] | {'pypirc'},
|
'.pypirc': EXTENSIONS['ini'] | {'pypirc'},
|
||||||
'.rstcheck.cfg': EXTENSIONS['ini'],
|
'.rstcheck.cfg': EXTENSIONS['ini'],
|
||||||
|
'.salt-lint': EXTENSIONS['yaml'] | {'salt-lint'},
|
||||||
'.yamllint': EXTENSIONS['yaml'] | {'yamllint'},
|
'.yamllint': EXTENSIONS['yaml'] | {'yamllint'},
|
||||||
'.zlogin': EXTENSIONS['zsh'],
|
'.zlogin': EXTENSIONS['zsh'],
|
||||||
'.zlogout': EXTENSIONS['zsh'],
|
'.zlogout': EXTENSIONS['zsh'],
|
||||||
|
@ -371,6 +374,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'],
|
||||||
|
'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.5.31
|
version = 2.5.33
|
||||||
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
|
||||||
|
|
|
@ -151,6 +151,7 @@ def test_tags_from_path_plist_text(tmpdir):
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
('filename', 'expected'),
|
('filename', 'expected'),
|
||||||
(
|
(
|
||||||
|
('.salt-lint', {'text', 'salt-lint', 'yaml'}),
|
||||||
('test.py', {'text', 'python'}),
|
('test.py', {'text', 'python'}),
|
||||||
('test.mk', {'text', 'makefile'}),
|
('test.mk', {'text', 'makefile'}),
|
||||||
('Makefile', {'text', 'makefile'}),
|
('Makefile', {'text', 'makefile'}),
|
||||||
|
@ -170,6 +171,7 @@ def test_tags_from_path_plist_text(tmpdir):
|
||||||
('build.jenkinsfile', {'text', 'groovy', 'jenkins'}),
|
('build.jenkinsfile', {'text', 'groovy', 'jenkins'}),
|
||||||
('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'}),
|
||||||
|
|
||||||
# does not set binary / text
|
# does not set binary / text
|
||||||
('f.plist', {'plist'}),
|
('f.plist', {'plist'}),
|
||||||
|
|
Loading…
Add table
Reference in a new issue