summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.pre-commit-config.yaml4
-rw-r--r--README.md4
-rw-r--r--identify/extensions.py7
-rw-r--r--setup.cfg2
4 files changed, 13 insertions, 4 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index bf37b40..f63fcb2 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -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$
diff --git a/README.md b/README.md
index ccd7ad2..97e9f58 100644
--- a/README.md
+++ b/README.md
@@ -13,7 +13,9 @@ tags identifying what the file is.
## Installation
-`pip install identify`
+```bash
+pip install identify
+```
## Usage
### With a file on disk
diff --git a/identify/extensions.py b/identify/extensions.py
index f757cfc..3d2da78 100644
--- a/identify/extensions.py
+++ b/identify/extensions.py
@@ -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'},
diff --git a/setup.cfg b/setup.cfg
index bfe61f8..8afa325 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -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