1
0
Fork 0

Merging upstream version 2.3.3.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-12 21:52:42 +01:00
parent e41e25f826
commit 85f0daa105
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
6 changed files with 12 additions and 8 deletions

View file

@ -11,11 +11,11 @@ repos:
- id: requirements-txt-fixer - id: requirements-txt-fixer
- id: trailing-whitespace - id: trailing-whitespace
- repo: https://github.com/asottile/setup-cfg-fmt - repo: https://github.com/asottile/setup-cfg-fmt
rev: v1.17.0 rev: v1.18.0
hooks: hooks:
- id: setup-cfg-fmt - id: setup-cfg-fmt
- repo: https://github.com/PyCQA/flake8 - repo: https://github.com/PyCQA/flake8
rev: 3.9.2 rev: 4.0.1
hooks: hooks:
- id: flake8 - id: flake8
exclude: ^identify/vendor/licenses\.py$ exclude: ^identify/vendor/licenses\.py$
@ -30,16 +30,16 @@ repos:
- id: reorder-python-imports - id: reorder-python-imports
args: [--py3-plus] args: [--py3-plus]
- repo: https://github.com/asottile/add-trailing-comma - repo: https://github.com/asottile/add-trailing-comma
rev: v2.1.0 rev: v2.2.0
hooks: hooks:
- 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: v2.28.0 rev: v2.29.0
hooks: hooks:
- id: pyupgrade - id: pyupgrade
args: [--py36-plus] args: [--py36-plus]
- repo: https://github.com/pre-commit/mirrors-mypy - repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.910 rev: v0.910-1
hooks: hooks:
- id: mypy - id: mypy

View file

@ -54,4 +54,4 @@ def main() -> int:
if __name__ == '__main__': if __name__ == '__main__':
exit(main()) raise SystemExit(main())

View file

@ -31,4 +31,4 @@ def main(argv: Optional[Sequence[str]] = None) -> int:
if __name__ == '__main__': if __name__ == '__main__':
exit(main()) raise SystemExit(main())

View file

@ -137,6 +137,7 @@ EXTENSIONS = {
'png': {'binary', 'image', 'png'}, 'png': {'binary', 'image', 'png'},
'po': {'text', 'pofile'}, 'po': {'text', 'pofile'},
'pp': {'text', 'puppet'}, 'pp': {'text', 'puppet'},
'prisma': {'text', 'prisma'},
'properties': {'text', 'java-properties'}, 'properties': {'text', 'java-properties'},
'proto': {'text', 'proto'}, 'proto': {'text', 'proto'},
'ps1': {'text', 'powershell'}, 'ps1': {'text', 'powershell'},
@ -172,6 +173,7 @@ EXTENSIONS = {
'ss': {'text', 'scheme'}, 'ss': {'text', 'scheme'},
'styl': {'text', 'stylus'}, 'styl': {'text', 'stylus'},
'sv': {'text', 'system-verilog'}, 'sv': {'text', 'system-verilog'},
'svelte': {'text', 'svelte'},
'svg': {'text', 'image', 'svg', 'xml'}, 'svg': {'text', 'image', 'svg', 'xml'},
'svh': {'text', 'system-verilog'}, 'svh': {'text', 'system-verilog'},
'swf': {'binary', 'swf'}, 'swf': {'binary', 'swf'},

View file

@ -3,6 +3,7 @@ INTERPRETERS = {
'awk': {'awk'}, 'awk': {'awk'},
'bash': {'shell', 'bash'}, 'bash': {'shell', 'bash'},
'bats': {'shell', 'bash', 'bats'}, 'bats': {'shell', 'bash', 'bats'},
'cbsd': {'shell', 'cbsd'},
'csh': {'shell', 'csh'}, 'csh': {'shell', 'csh'},
'dash': {'shell', 'dash'}, 'dash': {'shell', 'dash'},
'expect': {'expect'}, 'expect': {'expect'},

View file

@ -1,6 +1,6 @@
[metadata] [metadata]
name = identify name = identify
version = 2.3.0 version = 2.3.3
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
@ -17,6 +17,7 @@ classifiers =
Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: Implementation :: CPython Programming Language :: Python :: Implementation :: CPython
Programming Language :: Python :: Implementation :: PyPy Programming Language :: Python :: Implementation :: PyPy