Skip to content

Commit

Permalink
Merge pull request #426 from dafyddj/feat/salt-lint
Browse files Browse the repository at this point in the history
feat: identify `.salt-lint` as YAML
  • Loading branch information
asottile authored Nov 18, 2023
2 parents 9c86ec0 + 307db79 commit 987c5b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions identify/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down
1 change: 1 addition & 0 deletions tests/identify_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'}),
Expand Down

0 comments on commit 987c5b4

Please sign in to comment.