1
0
Fork 0

Merging upstream version 2.5.5.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-12 22:03:27 +01:00
parent f99ee7a9af
commit 300752240f
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
4 changed files with 13 additions and 4 deletions

View file

@ -29,11 +29,11 @@ repos:
- 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.6.0 rev: v1.7.0
hooks: hooks:
- id: autopep8 - id: autopep8
- repo: https://github.com/PyCQA/flake8 - repo: https://github.com/PyCQA/flake8
rev: 5.0.2 rev: 5.0.4
hooks: hooks:
- id: flake8 - id: flake8
exclude: ^identify/vendor/licenses\.py$ exclude: ^identify/vendor/licenses\.py$

View file

@ -13,7 +13,9 @@ tags identifying what the file is.
## Installation ## Installation
`pip install identify` ```bash
pip install identify
```
## Usage ## Usage
### With a file on disk ### With a file on disk

View file

@ -38,6 +38,7 @@ EXTENSIONS = {
'cu': {'text', 'cuda'}, 'cu': {'text', 'cuda'},
'cuh': {'text', 'cuda'}, 'cuh': {'text', 'cuda'},
'cxx': {'text', 'c++'}, 'cxx': {'text', 'c++'},
'cylc': {'text', 'cylc'},
'dart': {'text', 'dart'}, 'dart': {'text', 'dart'},
'def': {'text', 'def'}, 'def': {'text', 'def'},
'dll': {'binary'}, 'dll': {'binary'},
@ -51,6 +52,10 @@ EXTENSIONS = {
'erb': {'text', 'erb'}, 'erb': {'text', 'erb'},
'exe': {'binary'}, 'exe': {'binary'},
'eyaml': {'text', 'yaml'}, 'eyaml': {'text', 'yaml'},
'f03': {'text', 'fortran'},
'f08': {'text', 'fortran'},
'f90': {'text', 'fortran'},
'f95': {'text', 'fortran'},
'feature': {'text', 'gherkin'}, 'feature': {'text', 'gherkin'},
'fish': {'text', 'fish'}, 'fish': {'text', 'fish'},
'fits': {'binary', 'fits'}, 'fits': {'binary', 'fits'},
@ -96,6 +101,7 @@ EXTENSIONS = {
'jenkinsfile': {'text', 'groovy', 'jenkins'}, 'jenkinsfile': {'text', 'groovy', 'jenkins'},
'jinja': {'text', 'jinja'}, 'jinja': {'text', 'jinja'},
'jinja2': {'text', 'jinja'}, 'jinja2': {'text', 'jinja'},
'jl': {'text', 'julia'},
'jpeg': {'binary', 'image', 'jpeg'}, 'jpeg': {'binary', 'image', 'jpeg'},
'jpg': {'binary', 'image', 'jpeg'}, 'jpg': {'binary', 'image', 'jpeg'},
'js': {'text', 'javascript'}, 'js': {'text', 'javascript'},
@ -280,6 +286,7 @@ NAMES = {
'.gitlint': EXTENSIONS['ini'] | {'gitlint'}, '.gitlint': EXTENSIONS['ini'] | {'gitlint'},
'.gitmodules': {'text', 'gitmodules'}, '.gitmodules': {'text', 'gitmodules'},
'.hgrc': EXTENSIONS['ini'] | {'hgrc'}, '.hgrc': EXTENSIONS['ini'] | {'hgrc'},
'.isort.cfg': EXTENSIONS['ini'] | {'isort'},
'.jshintrc': EXTENSIONS['json'] | {'jshintrc'}, '.jshintrc': EXTENSIONS['json'] | {'jshintrc'},
'.mailmap': {'text', 'mailmap'}, '.mailmap': {'text', 'mailmap'},
'.mention-bot': EXTENSIONS['json'] | {'mention-bot'}, '.mention-bot': EXTENSIONS['json'] | {'mention-bot'},

View file

@ -1,6 +1,6 @@
[metadata] [metadata]
name = identify name = identify
version = 2.5.3 version = 2.5.5
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