From 821849723d039173fc06ade888b60ad27e8a811d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 13 Feb 2025 05:46:49 +0100 Subject: [PATCH] Merging upstream version 2.6.7. Signed-off-by: Daniel Baumann --- .github/workflows/main.yml | 2 +- .pre-commit-config.yaml | 2 +- identify/extensions.py | 1 + identify/interpreters.py | 1 + setup.cfg | 2 +- 5 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 80cd12e..329bb3a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,6 +8,6 @@ on: jobs: main: - uses: asottile/workflows/.github/workflows/tox.yml@v1.7.0 + uses: asottile/workflows/.github/workflows/tox.yml@v1.8.1 with: env: '["py39", "py310", "py311", "py312"]' diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 50892e6..e22b8aa 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -28,7 +28,7 @@ repos: - id: pyupgrade args: [--py39-plus] - repo: https://github.com/hhatto/autopep8 - rev: v2.3.1 + rev: v2.3.2 hooks: - id: autopep8 - repo: https://github.com/PyCQA/flake8 diff --git a/identify/extensions.py b/identify/extensions.py index 37e3b33..8dc0e7b 100644 --- a/identify/extensions.py +++ b/identify/extensions.py @@ -250,6 +250,7 @@ EXTENSIONS = { 'swiftdeps': {'text', 'swiftdeps'}, 'tac': {'text', 'twisted', 'python'}, 'tar': {'binary', 'tar'}, + 'templ': {'text', 'templ'}, 'tex': {'text', 'tex'}, 'textproto': {'text', 'textproto'}, 'tf': {'text', 'terraform'}, diff --git a/identify/interpreters.py b/identify/interpreters.py index 3022e00..8b1bcc1 100644 --- a/identify/interpreters.py +++ b/identify/interpreters.py @@ -21,5 +21,6 @@ INTERPRETERS = { 'ruby': {'ruby'}, 'sh': {'shell', 'sh'}, 'tcsh': {'shell', 'tcsh'}, + 'uv': {'python'}, 'zsh': {'shell', 'zsh'}, } diff --git a/setup.cfg b/setup.cfg index e4f3dd3..ed75de7 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = identify -version = 2.6.6 +version = 2.6.7 description = File identification library for Python long_description = file: README.md long_description_content_type = text/markdown