diff options
-rw-r--r-- | .pre-commit-config.yaml | 8 | ||||
-rw-r--r-- | identify/extensions.py | 2 | ||||
-rw-r--r-- | setup.cfg | 2 |
3 files changed, 7 insertions, 5 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bc35d55..6f61d88 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v4.6.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -23,12 +23,12 @@ repos: hooks: - id: add-trailing-comma - repo: https://github.com/asottile/pyupgrade - rev: v3.15.0 + rev: v3.15.2 hooks: - id: pyupgrade args: [--py38-plus] - repo: https://github.com/hhatto/autopep8 - rev: v2.0.4 + rev: v2.1.0 hooks: - id: autopep8 - repo: https://github.com/PyCQA/flake8 @@ -37,6 +37,6 @@ repos: - id: flake8 exclude: ^identify/vendor/licenses\.py$ - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.8.0 + rev: v1.9.0 hooks: - id: mypy diff --git a/identify/extensions.py b/identify/extensions.py index 12a3343..d427f67 100644 --- a/identify/extensions.py +++ b/identify/extensions.py @@ -341,6 +341,8 @@ NAMES = { '.zshenv': EXTENSIONS['zsh'], 'AUTHORS': EXTENSIONS['txt'], 'BUILD': EXTENSIONS['bzl'], + 'Cargo.toml': EXTENSIONS['toml'] | {'cargo'}, + 'Cargo.lock': EXTENSIONS['toml'] | {'cargo-lock'}, 'CMakeLists.txt': EXTENSIONS['cmake'], 'CHANGELOG': EXTENSIONS['txt'], 'config.ru': EXTENSIONS['rb'], @@ -1,6 +1,6 @@ [metadata] name = identify -version = 2.5.35 +version = 2.5.36 description = File identification library for Python long_description = file: README.md long_description_content_type = text/markdown |