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

View file

@ -54,4 +54,4 @@ def main() -> int:
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__':
exit(main())
raise SystemExit(main())

View file

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

View file

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

View file

@ -1,6 +1,6 @@
[metadata]
name = identify
version = 2.3.0
version = 2.3.3
description = File identification library for Python
long_description = file: README.md
long_description_content_type = text/markdown
@ -17,6 +17,7 @@ classifiers =
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: Implementation :: CPython
Programming Language :: Python :: Implementation :: PyPy