Skip to content

Commit

Permalink
Merge pull request #405 from sid-maddy/sid/feature/containerfile
Browse files Browse the repository at this point in the history
feat(extensions): identify `Containerfile` as a `dockerfile`
  • Loading branch information
asottile authored Aug 21, 2023
2 parents a63c472 + 5e4c376 commit 0b48292
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 @@ -330,6 +330,7 @@
'CMakeLists.txt': EXTENSIONS['cmake'],
'CHANGELOG': EXTENSIONS['txt'],
'config.ru': EXTENSIONS['rb'],
'Containerfile': {'text', 'dockerfile'},
'CONTRIBUTING': EXTENSIONS['txt'],
'COPYING': EXTENSIONS['txt'],
'Dockerfile': {'text', 'dockerfile'},
Expand Down
1 change: 1 addition & 0 deletions tests/identify_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ def test_tags_from_path_plist_text(tmpdir):
('test.py', {'text', 'python'}),
('test.mk', {'text', 'makefile'}),
('Makefile', {'text', 'makefile'}),
('Containerfile', {'text', 'dockerfile'}),
('Dockerfile', {'text', 'dockerfile'}),
('Dockerfile.xenial', {'text', 'dockerfile'}),
('xenial.Dockerfile', {'text', 'dockerfile'}),
Expand Down

0 comments on commit 0b48292

Please sign in to comment.