summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-05-03 09:14:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-05-03 09:14:14 +0000
commit1977fc672a727179462f2f852f574881923e98ad (patch)
tree823494f2c12ba1f5880fe2f80b39353a1cdadd58
parentReleasing debian version 2.5.22-1. (diff)
downloadidentify-1977fc672a727179462f2f852f574881923e98ad.tar.xz
identify-1977fc672a727179462f2f852f574881923e98ad.zip
Merging upstream version 2.5.23.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r--.pre-commit-config.yaml4
-rw-r--r--identify/interpreters.py3
-rw-r--r--setup.cfg2
-rw-r--r--tests/identify_test.py1
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):