diff --git a/identify/extensions.py b/identify/extensions.py index 281d1ea..df8485f 100644 --- a/identify/extensions.py +++ b/identify/extensions.py @@ -328,6 +328,7 @@ '.prettierignore': {'text', 'gitignore', 'prettierignore'}, '.pypirc': EXTENSIONS['ini'] | {'pypirc'}, '.rstcheck.cfg': EXTENSIONS['ini'], + '.salt-lint': EXTENSIONS['yaml'] | {'salt-lint'}, '.yamllint': EXTENSIONS['yaml'] | {'yamllint'}, '.zlogin': EXTENSIONS['zsh'], '.zlogout': EXTENSIONS['zsh'], diff --git a/tests/identify_test.py b/tests/identify_test.py index 65470e7..bb8aba5 100644 --- a/tests/identify_test.py +++ b/tests/identify_test.py @@ -151,6 +151,7 @@ def test_tags_from_path_plist_text(tmpdir): @pytest.mark.parametrize( ('filename', 'expected'), ( + ('.salt-lint', {'text', 'salt-lint', 'yaml'}), ('test.py', {'text', 'python'}), ('test.mk', {'text', 'makefile'}), ('Makefile', {'text', 'makefile'}),