Merging upstream version 2.5.27.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
0f70833b8e
commit
55c0912297
4 changed files with 8 additions and 6 deletions
|
@ -19,11 +19,11 @@ repos:
|
|||
- id: reorder-python-imports
|
||||
args: [--py38-plus, --add-import, 'from __future__ import annotations']
|
||||
- repo: https://github.com/asottile/add-trailing-comma
|
||||
rev: v3.0.0
|
||||
rev: v3.0.1
|
||||
hooks:
|
||||
- id: add-trailing-comma
|
||||
- repo: https://github.com/asottile/pyupgrade
|
||||
rev: v3.9.0
|
||||
rev: v3.10.1
|
||||
hooks:
|
||||
- id: pyupgrade
|
||||
args: [--py38-plus]
|
||||
|
@ -32,11 +32,11 @@ repos:
|
|||
hooks:
|
||||
- id: autopep8
|
||||
- repo: https://github.com/PyCQA/flake8
|
||||
rev: 6.0.0
|
||||
rev: 6.1.0
|
||||
hooks:
|
||||
- id: flake8
|
||||
exclude: ^identify/vendor/licenses\.py$
|
||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||
rev: v1.4.1
|
||||
rev: v1.5.0
|
||||
hooks:
|
||||
- id: mypy
|
||||
|
|
|
@ -10,6 +10,7 @@ EXTENSIONS = {
|
|||
'bash': {'text', 'shell', 'bash'},
|
||||
'bat': {'text', 'batch'},
|
||||
'bats': {'text', 'shell', 'bash', 'bats'},
|
||||
'bazel': {'text', 'bazel'},
|
||||
'beancount': {'text', 'beancount'},
|
||||
'bib': {'text', 'bib'},
|
||||
'bmp': {'binary', 'image', 'bitmap'},
|
||||
|
@ -326,10 +327,10 @@ NAMES = {
|
|||
'.zshenv': EXTENSIONS['zsh'],
|
||||
'AUTHORS': EXTENSIONS['txt'],
|
||||
'BUILD': EXTENSIONS['bzl'],
|
||||
'BUILD.bazel': EXTENSIONS['bzl'],
|
||||
'CMakeLists.txt': EXTENSIONS['cmake'],
|
||||
'CHANGELOG': EXTENSIONS['txt'],
|
||||
'config.ru': EXTENSIONS['rb'],
|
||||
'Containerfile': {'text', 'dockerfile'},
|
||||
'CONTRIBUTING': EXTENSIONS['txt'],
|
||||
'COPYING': EXTENSIONS['txt'],
|
||||
'Dockerfile': {'text', 'dockerfile'},
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[metadata]
|
||||
name = identify
|
||||
version = 2.5.26
|
||||
version = 2.5.27
|
||||
description = File identification library for Python
|
||||
long_description = file: README.md
|
||||
long_description_content_type = text/markdown
|
||||
|
|
|
@ -154,6 +154,7 @@ def test_tags_from_path_plist_text(tmpdir):
|
|||
('test.py', {'text', 'python'}),
|
||||
('test.mk', {'text', 'makefile'}),
|
||||
('Makefile', {'text', 'makefile'}),
|
||||
('Containerfile', {'text', 'dockerfile'}),
|
||||
('Dockerfile', {'text', 'dockerfile'}),
|
||||
('Dockerfile.xenial', {'text', 'dockerfile'}),
|
||||
('xenial.Dockerfile', {'text', 'dockerfile'}),
|
||||
|
|
Loading…
Add table
Reference in a new issue