From 0ccaa2e58a081082bc5d012b5cc1dade0466a70d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 18 Apr 2026 12:19:58 +0800 Subject: [PATCH] Sync latest identify tags (#1947) --- crates/prek-identify/gen.py.lock | 6 +++--- crates/prek-identify/src/tags.rs | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/crates/prek-identify/gen.py.lock b/crates/prek-identify/gen.py.lock index 56a6d426..df2f8572 100644 --- a/crates/prek-identify/gen.py.lock +++ b/crates/prek-identify/gen.py.lock @@ -7,9 +7,9 @@ requirements = [{ name = "identify", specifier = ">=2.6.16" }] [[package]] name = "identify" -version = "2.6.18" +version = "2.6.19" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/46/c4/7fb4db12296cdb11893d61c92048fe617ee853f8523b9b296ac03b43757e/identify-2.6.18.tar.gz", hash = "sha256:873ac56a5e3fd63e7438a7ecbc4d91aca692eb3fefa4534db2b7913f3fc352fd", size = 99580, upload-time = "2026-03-15T18:39:50.319Z" } +sdist = { url = "https://files.pythonhosted.org/packages/52/63/51723b5f116cc04b061cb6f5a561790abf249d25931d515cd375e063e0f4/identify-2.6.19.tar.gz", hash = "sha256:6be5020c38fcb07da56c53733538a3081ea5aa70d36a156f83044bfbf9173842", size = 99567, upload-time = "2026-04-17T18:39:50.265Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/46/33/92ef41c6fad0233e41d3d84ba8e8ad18d1780f1e5d99b3c683e6d7f98b63/identify-2.6.18-py2.py3-none-any.whl", hash = "sha256:8db9d3c8ea9079db92cafb0ebf97abdc09d52e97f4dcf773a2e694048b7cd737", size = 99394, upload-time = "2026-03-15T18:39:48.915Z" }, + { url = "https://files.pythonhosted.org/packages/94/84/d9273cd09688070a6523c4aee4663a8538721b2b755c4962aafae0011e72/identify-2.6.19-py2.py3-none-any.whl", hash = "sha256:20e6a87f786f768c092a721ad107fc9df0eb89347be9396cadf3f4abbd1fb78a", size = 99397, upload-time = "2026-04-17T18:39:49.221Z" }, ] diff --git a/crates/prek-identify/src/tags.rs b/crates/prek-identify/src/tags.rs index 59d0940e..f7dab13b 100644 --- a/crates/prek-identify/src/tags.rs +++ b/crates/prek-identify/src/tags.rs @@ -943,6 +943,8 @@ pub const EXTENSIONS: phf::Map<&str, TagSet> = phf::phf_map! { // ["text", "thrift"] "thrift" => TagSet::new(&[255, 257]), // ["binary", "image", "tiff"] + "tif" => TagSet::new(&[21, 117, 258]), + // ["binary", "image", "tiff"] "tiff" => TagSet::new(&[21, 117, 258]), // ["text", "toml"] "toml" => TagSet::new(&[255, 260]),