diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-03-11 08:04:49 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-03-11 08:04:49 +0000 |
commit | ff78b125a1f767a763bc73b6edefc7cad35b8c74 (patch) | |
tree | 080276319427a8748d2628ac41f38a21ba318a1c | |
parent | Adding upstream version 2.5.18. (diff) | |
download | identify-ff78b125a1f767a763bc73b6edefc7cad35b8c74.tar.xz identify-ff78b125a1f767a763bc73b6edefc7cad35b8c74.zip |
Adding upstream version 2.5.19.upstream/2.5.19
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r-- | .pre-commit-config.yaml | 4 | ||||
-rw-r--r-- | identify/extensions.py | 2 | ||||
-rw-r--r-- | setup.cfg | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b29a10d..feb04ae 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -29,7 +29,7 @@ repos: - id: pyupgrade args: [--py37-plus] - repo: https://github.com/pre-commit/mirrors-autopep8 - rev: v2.0.1 + rev: v2.0.2 hooks: - id: autopep8 - repo: https://github.com/PyCQA/flake8 @@ -38,6 +38,6 @@ repos: - id: flake8 exclude: ^identify/vendor/licenses\.py$ - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.991 + rev: v1.0.1 hooks: - id: mypy diff --git a/identify/extensions.py b/identify/extensions.py index 6addba6..dae7d2d 100644 --- a/identify/extensions.py +++ b/identify/extensions.py @@ -171,6 +171,7 @@ EXTENSIONS = { 'pm': {'text', 'perl'}, 'png': {'binary', 'image', 'png'}, 'po': {'text', 'pofile'}, + 'pom': {'pom', 'text', 'xml'}, 'pp': {'text', 'puppet'}, 'prisma': {'text', 'prisma'}, 'properties': {'text', 'java-properties'}, @@ -345,6 +346,7 @@ NAMES = { 'Pipfile.lock': EXTENSIONS['json'], 'PKGBUILD': {'text', 'bash', 'pkgbuild', 'alpm'}, 'poetry.lock': EXTENSIONS['toml'], + 'pom.xml': EXTENSIONS['pom'], 'pylintrc': EXTENSIONS['ini'] | {'pylintrc'}, 'README': EXTENSIONS['txt'], 'Rakefile': EXTENSIONS['rb'], @@ -1,6 +1,6 @@ [metadata] name = identify -version = 2.5.18 +version = 2.5.19 description = File identification library for Python long_description = file: README.md long_description_content_type = text/markdown |