diff options
Diffstat (limited to '')
-rw-r--r-- | .pre-commit-config.yaml | 4 | ||||
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | identify/extensions.py | 7 | ||||
-rw-r--r-- | setup.cfg | 2 |
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$ @@ -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'}, @@ -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 |