Skip to content

Commit dac18a9

Browse files
committed
Add Tiltfile support
1 parent ce50079 commit dac18a9

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

identify/extensions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,7 @@
393393
'setup.cfg': EXTENSIONS['ini'],
394394
'sys.config': EXTENSIONS['erl'],
395395
'sys.config.src': EXTENSIONS['erl'],
396+
'Tiltfile': {'text', 'tiltfile'},
396397
'Vagrantfile': EXTENSIONS['rb'],
397398
'WORKSPACE': EXTENSIONS['bzl'],
398399
'wscript': EXTENSIONS['py'],

tests/identify_test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ def test_tags_from_path_plist_text(tmpdir):
172172
('meson.build', {'text', 'meson'}),
173173
('meson_options.txt', {'text', 'plain-text', 'meson'}),
174174
('Vagrantfile', {'text', 'ruby'}),
175+
('Tiltfile', {'text', 'tiltfile'}),
176+
('Tiltfile.abc', {'text', 'tiltfile'}),
177+
('test.Tiltfile', {'text', 'tiltfile'}),
175178
176179
# does not set binary / text
177180
('f.plist', {'plist'}),

0 commit comments

Comments
 (0)