From dac18a9191b6087c3d28dcbd83172317f5ae1f60 Mon Sep 17 00:00:00 2001 From: Daniel Bast <2790401+dbast@users.noreply.github.com> Date: Tue, 17 Dec 2024 10:25:13 +0100 Subject: [PATCH] Add Tiltfile support --- identify/extensions.py | 1 + tests/identify_test.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/identify/extensions.py b/identify/extensions.py index 8b38f70..7c8159d 100644 --- a/identify/extensions.py +++ b/identify/extensions.py @@ -393,6 +393,7 @@ 'setup.cfg': EXTENSIONS['ini'], 'sys.config': EXTENSIONS['erl'], 'sys.config.src': EXTENSIONS['erl'], + 'Tiltfile': {'text', 'tiltfile'}, 'Vagrantfile': EXTENSIONS['rb'], 'WORKSPACE': EXTENSIONS['bzl'], 'wscript': EXTENSIONS['py'], diff --git a/tests/identify_test.py b/tests/identify_test.py index c0e5410..47b9b3b 100644 --- a/tests/identify_test.py +++ b/tests/identify_test.py @@ -172,6 +172,9 @@ def test_tags_from_path_plist_text(tmpdir): ('meson.build', {'text', 'meson'}), ('meson_options.txt', {'text', 'plain-text', 'meson'}), ('Vagrantfile', {'text', 'ruby'}), + ('Tiltfile', {'text', 'tiltfile'}), + ('Tiltfile.abc', {'text', 'tiltfile'}), + ('test.Tiltfile', {'text', 'tiltfile'}), # does not set binary / text ('f.plist', {'plist'}),