1
0
Fork 0

Merging upstream version 2.5.23.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-13 05:30:24 +01:00
parent aa50ec99fd
commit 0edf73829d
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
4 changed files with 7 additions and 3 deletions

View file

@ -24,7 +24,7 @@ repos:
- id: add-trailing-comma
args: [--py36-plus]
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
rev: v3.3.2
hooks:
- id: pyupgrade
args: [--py37-plus]
@ -38,6 +38,6 @@ repos:
- id: flake8
exclude: ^identify/vendor/licenses\.py$
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.1.1
rev: v1.2.0
hooks:
- id: mypy

View file

@ -12,6 +12,9 @@ INTERPRETERS = {
'node': {'javascript'},
'nodejs': {'javascript'},
'perl': {'perl'},
'php': {'php'},
'php7': {'php', 'php7'},
'php8': {'php', 'php8'},
'python': {'python'},
'python2': {'python', 'python2'},
'python3': {'python', 'python3'},

View file

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

View file

@ -39,6 +39,7 @@ def test_all_tags_contains_each_type():
assert 'plist' in identify.ALL_TAGS # extension, needs binary check
assert 'dockerfile' in identify.ALL_TAGS # by file convention
assert 'python3' in identify.ALL_TAGS # by shebang
assert 'php8' in identify.ALL_TAGS # by shebang
def test_tags_from_path_does_not_exist(tmpdir):