1
0
Fork 0

Merging upstream version 2.5.9.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-12 22:05:00 +01:00
parent f637a350b2
commit 982905fa43
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
3 changed files with 11 additions and 7 deletions

View file

@ -10,11 +10,11 @@ repos:
- id: name-tests-test - id: name-tests-test
- id: requirements-txt-fixer - id: requirements-txt-fixer
- repo: https://github.com/asottile/setup-cfg-fmt - repo: https://github.com/asottile/setup-cfg-fmt
rev: v2.1.0 rev: v2.2.0
hooks: hooks:
- id: setup-cfg-fmt - id: setup-cfg-fmt
- repo: https://github.com/asottile/reorder_python_imports - repo: https://github.com/asottile/reorder_python_imports
rev: v3.8.5 rev: v3.9.0
hooks: hooks:
- id: reorder-python-imports - id: reorder-python-imports
args: [--py37-plus, --add-import, 'from __future__ import annotations'] args: [--py37-plus, --add-import, 'from __future__ import annotations']
@ -24,12 +24,12 @@ repos:
- id: add-trailing-comma - id: add-trailing-comma
args: [--py36-plus] args: [--py36-plus]
- repo: https://github.com/asottile/pyupgrade - repo: https://github.com/asottile/pyupgrade
rev: v3.1.0 rev: v3.2.2
hooks: hooks:
- id: pyupgrade - id: pyupgrade
args: [--py37-plus] args: [--py37-plus]
- repo: https://github.com/pre-commit/mirrors-autopep8 - repo: https://github.com/pre-commit/mirrors-autopep8
rev: v1.7.0 rev: v2.0.0
hooks: hooks:
- id: autopep8 - id: autopep8
- repo: https://github.com/PyCQA/flake8 - repo: https://github.com/PyCQA/flake8
@ -38,6 +38,6 @@ repos:
- id: flake8 - id: flake8
exclude: ^identify/vendor/licenses\.py$ exclude: ^identify/vendor/licenses\.py$
- repo: https://github.com/pre-commit/mirrors-mypy - repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.982 rev: v0.990
hooks: hooks:
- id: mypy - id: mypy

View file

@ -51,6 +51,7 @@ EXTENSIONS = {
'eot': {'binary', 'eot'}, 'eot': {'binary', 'eot'},
'eps': {'binary', 'eps'}, 'eps': {'binary', 'eps'},
'erb': {'text', 'erb'}, 'erb': {'text', 'erb'},
'erl': {'text', 'erlang'},
'exe': {'binary'}, 'exe': {'binary'},
'eyaml': {'text', 'yaml'}, 'eyaml': {'text', 'yaml'},
'f03': {'text', 'fortran'}, 'f03': {'text', 'fortran'},
@ -79,6 +80,7 @@ EXTENSIONS = {
'hcl': {'text', 'hcl'}, 'hcl': {'text', 'hcl'},
'hh': {'text', 'header', 'c++'}, 'hh': {'text', 'header', 'c++'},
'hpp': {'text', 'header', 'c++'}, 'hpp': {'text', 'header', 'c++'},
'hrl': {'text', 'erlang'},
'hs': {'text', 'haskell'}, 'hs': {'text', 'haskell'},
'htm': {'text', 'html'}, 'htm': {'text', 'html'},
'html': {'text', 'html'}, 'html': {'text', 'html'},
@ -333,7 +335,10 @@ NAMES = {
'pylintrc': EXTENSIONS['ini'] | {'pylintrc'}, 'pylintrc': EXTENSIONS['ini'] | {'pylintrc'},
'README': EXTENSIONS['txt'], 'README': EXTENSIONS['txt'],
'Rakefile': EXTENSIONS['rb'], 'Rakefile': EXTENSIONS['rb'],
'rebar.config': EXTENSIONS['erl'],
'setup.cfg': EXTENSIONS['ini'], 'setup.cfg': EXTENSIONS['ini'],
'sys.config': EXTENSIONS['erl'],
'sys.config.src': EXTENSIONS['erl'],
'WORKSPACE': EXTENSIONS['bzl'], 'WORKSPACE': EXTENSIONS['bzl'],
'wscript': EXTENSIONS['py'], 'wscript': EXTENSIONS['py'],
} }

View file

@ -1,6 +1,6 @@
[metadata] [metadata]
name = identify name = identify
version = 2.5.8 version = 2.5.9
description = File identification library for Python description = File identification library for Python
long_description = file: README.md long_description = file: README.md
long_description_content_type = text/markdown long_description_content_type = text/markdown
@ -48,7 +48,6 @@ check_untyped_defs = true
disallow_any_generics = true disallow_any_generics = true
disallow_incomplete_defs = true disallow_incomplete_defs = true
disallow_untyped_defs = true disallow_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true warn_redundant_casts = true
warn_unused_ignores = true warn_unused_ignores = true