1
0
Fork 0

Merging upstream version 2.5.26.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-13 05:33:03 +01:00
parent 036e866a01
commit 70ad6159f9
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
5 changed files with 22 additions and 21 deletions

View file

@ -3,11 +3,11 @@ name: main
on: on:
push: push:
branches: [main, test-me-*] branches: [main, test-me-*]
tags: tags: '*'
pull_request: pull_request:
jobs: jobs:
main: main:
uses: asottile/workflows/.github/workflows/tox.yml@v1.0.0 uses: asottile/workflows/.github/workflows/tox.yml@v1.5.0
with: with:
env: '["py38", "py39", "py310"]' env: '["py38", "py39", "py310", "py311"]'

View file

@ -10,24 +10,23 @@ 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.2.0
hooks:
- id: setup-cfg-fmt
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.9.0
hooks:
- id: reorder-python-imports
args: [--py37-plus, --add-import, 'from __future__ import annotations']
- repo: https://github.com/asottile/add-trailing-comma
rev: v2.4.0 rev: v2.4.0
hooks: hooks:
- id: setup-cfg-fmt
- repo: https://github.com/asottile/reorder-python-imports
rev: v3.10.0
hooks:
- 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
hooks:
- id: add-trailing-comma - id: add-trailing-comma
args: [--py36-plus]
- repo: https://github.com/asottile/pyupgrade - repo: https://github.com/asottile/pyupgrade
rev: v3.3.2 rev: v3.9.0
hooks: hooks:
- id: pyupgrade - id: pyupgrade
args: [--py37-plus] args: [--py38-plus]
- repo: https://github.com/pre-commit/mirrors-autopep8 - repo: https://github.com/pre-commit/mirrors-autopep8
rev: v2.0.2 rev: v2.0.2
hooks: hooks:
@ -38,6 +37,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: v1.2.0 rev: v1.4.1
hooks: hooks:
- id: mypy - id: mypy

View file

@ -54,7 +54,9 @@ EXTENSIONS = {
'eps': {'binary', 'eps'}, 'eps': {'binary', 'eps'},
'erb': {'text', 'erb'}, 'erb': {'text', 'erb'},
'erl': {'text', 'erlang'}, 'erl': {'text', 'erlang'},
'ex': {'text', 'elixir'},
'exe': {'binary'}, 'exe': {'binary'},
'exs': {'text', 'elixir'},
'eyaml': {'text', 'yaml'}, 'eyaml': {'text', 'yaml'},
'f03': {'text', 'fortran'}, 'f03': {'text', 'fortran'},
'f08': {'text', 'fortran'}, 'f08': {'text', 'fortran'},
@ -97,7 +99,7 @@ EXTENSIONS = {
'inl': {'text', 'inl', 'c++'}, 'inl': {'text', 'inl', 'c++'},
'ino': {'text', 'ino', 'c++'}, 'ino': {'text', 'ino', 'c++'},
'inx': {'text', 'xml', 'inx'}, 'inx': {'text', 'xml', 'inx'},
'ipynb': {'text', 'jupyter'}, 'ipynb': {'text', 'jupyter', 'json'},
'j2': {'text', 'jinja'}, 'j2': {'text', 'jinja'},
'jade': {'text', 'jade'}, 'jade': {'text', 'jade'},
'jar': {'binary', 'zip', 'jar'}, 'jar': {'binary', 'zip', 'jar'},

View file

@ -1,6 +1,6 @@
[metadata] [metadata]
name = identify name = identify
version = 2.5.24 version = 2.5.26
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
@ -8,7 +8,7 @@ url = https://github.com/pre-commit/identify
author = Chris Kuehl author = Chris Kuehl
author_email = ckuehl@ocf.berkeley.edu author_email = ckuehl@ocf.berkeley.edu
license = MIT license = MIT
license_file = LICENSE license_files = LICENSE
classifiers = classifiers =
License :: OSI Approved :: MIT License License :: OSI Approved :: MIT License
Programming Language :: Python :: 3 Programming Language :: Python :: 3
@ -18,7 +18,7 @@ classifiers =
[options] [options]
packages = find: packages = find:
python_requires = >=3.7 python_requires = >=3.8
[options.packages.find] [options.packages.find]
exclude = exclude =

View file

@ -1,5 +1,5 @@
[tox] [tox]
envlist = py37,pypy3,pre-commit envlist = py,pre-commit
[testenv] [testenv]
deps = -rrequirements-dev.txt deps = -rrequirements-dev.txt