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
args: [--py37-plus]
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: v1.6.0
rev: v1.7.0
hooks:
- id: autopep8
- repo: https://github.com/PyCQA/flake8
rev: 5.0.2
rev: 5.0.4
hooks:
- id: flake8
exclude: ^identify/vendor/licenses\.py$

View file

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

View file

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

View file

@ -1,6 +1,6 @@
[metadata]
name = identify
version = 2.5.3
version = 2.5.5
description = File identification library for Python
long_description = file: README.md
long_description_content_type = text/markdown