diff options
-rw-r--r-- | .pre-commit-config.yaml | 4 | ||||
-rw-r--r-- | identify/interpreters.py | 3 | ||||
-rw-r--r-- | setup.cfg | 2 | ||||
-rw-r--r-- | 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'}, @@ -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): |