1
0
Fork 0

Merging upstream version 2.6.2.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-13 05:40:16 +01:00
parent 7d067fa8ca
commit 5b95abd710
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
5 changed files with 13 additions and 12 deletions

View file

@ -8,6 +8,6 @@ on:
jobs:
main:
uses: asottile/workflows/.github/workflows/tox.yml@v1.5.0
uses: asottile/workflows/.github/workflows/tox.yml@v1.7.0
with:
env: '["py38", "py39", "py310", "py311"]'
env: '["py39", "py310", "py311", "py312"]'

View file

@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
@ -10,23 +10,23 @@ repos:
- id: name-tests-test
- id: requirements-txt-fixer
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v2.5.0
rev: v2.7.0
hooks:
- id: setup-cfg-fmt
- repo: https://github.com/asottile/reorder-python-imports
rev: v3.13.0
rev: v3.14.0
hooks:
- id: reorder-python-imports
args: [--py38-plus, --add-import, 'from __future__ import annotations']
args: [--py39-plus, --add-import, 'from __future__ import annotations']
- repo: https://github.com/asottile/add-trailing-comma
rev: v3.1.0
hooks:
- id: add-trailing-comma
- repo: https://github.com/asottile/pyupgrade
rev: v3.17.0
rev: v3.19.0
hooks:
- id: pyupgrade
args: [--py38-plus]
args: [--py39-plus]
- repo: https://github.com/hhatto/autopep8
rev: v2.3.1
hooks:
@ -37,6 +37,6 @@ repos:
- id: flake8
exclude: ^identify/vendor/licenses\.py$
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.2
rev: v1.13.0
hooks:
- id: mypy

View file

@ -2,7 +2,7 @@ from __future__ import annotations
import argparse
import json
from typing import Sequence
from collections.abc import Sequence
from identify import identify

View file

@ -58,6 +58,7 @@ EXTENSIONS = {
'edn': {'text', 'clojure', 'edn'},
'ejs': {'text', 'ejs'},
'ejson': {'text', 'json', 'ejson'},
'elm': {'text', 'elm'},
'env': {'text', 'dotenv'},
'eot': {'binary', 'eot'},
'eps': {'binary', 'eps'},

View file

@ -1,6 +1,6 @@
[metadata]
name = identify
version = 2.6.1
version = 2.6.2
description = File identification library for Python
long_description = file: README.md
long_description_content_type = text/markdown
@ -18,7 +18,7 @@ classifiers =
[options]
packages = find:
python_requires = >=3.8
python_requires = >=3.9
[options.packages.find]
exclude =