From 1977fc672a727179462f2f852f574881923e98ad Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 3 May 2023 11:14:14 +0200 Subject: Merging upstream version 2.5.23. Signed-off-by: Daniel Baumann --- .pre-commit-config.yaml | 4 ++-- identify/interpreters.py | 3 +++ setup.cfg | 2 +- tests/identify_test.py | 1 + 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 481b58f..3bfeacb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/identify/interpreters.py b/identify/interpreters.py index 110a29c..3022e00 100644 --- a/identify/interpreters.py +++ b/identify/interpreters.py @@ -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'}, diff --git a/setup.cfg b/setup.cfg index 34fee6f..9e960e2 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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 diff --git a/tests/identify_test.py b/tests/identify_test.py index 2026afe..3429c12 100644 --- a/tests/identify_test.py +++ b/tests/identify_test.py @@ -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): -- cgit v1.2.3