From a55c3349173d59914e300dd0d5905426c97c5f36 Mon Sep 17 00:00:00 2001 From: Abdulelah Bin Mahfoodh Date: Thu, 28 May 2020 20:14:15 +0300 Subject: [PATCH 1/2] Add csh to interpreters and .cshrc to extensions --- identify/extensions.py | 2 ++ identify/interpreters.py | 1 + 2 files changed, 3 insertions(+) diff --git a/identify/extensions.py b/identify/extensions.py index a36d1f0..e2de2ae 100644 --- a/identify/extensions.py +++ b/identify/extensions.py @@ -26,6 +26,7 @@ 'cpp': {'text', 'c++'}, 'crt': {'text', 'pem'}, 'cs': {'text', 'c#'}, + 'csh': {'text', 'shell', 'csh'}, 'cson': {'text', 'cson'}, 'css': {'text', 'css'}, 'csv': {'text', 'csv'}, @@ -196,6 +197,7 @@ '.bash_aliases': EXTENSIONS['bash'], '.bash_profile': EXTENSIONS['bash'], '.bowerrc': EXTENSIONS['json'] | {'bowerrc'}, + '.cshrc': EXTENSIONS['csh'], '.coveragerc': EXTENSIONS['ini'] | {'coveragerc'}, '.dockerignore': {'text', 'dockerignore'}, '.editorconfig': {'text', 'editorconfig'}, diff --git a/identify/interpreters.py b/identify/interpreters.py index 96c1d92..af0130b 100644 --- a/identify/interpreters.py +++ b/identify/interpreters.py @@ -15,4 +15,5 @@ 'sh': {'shell', 'sh'}, 'tcsh': {'shell', 'tcsh'}, 'zsh': {'shell', 'zsh'}, + 'csh': {'shell', 'csh'}, } From 2f9cffa6759abd81b23d73e75f4d8797bc7459f3 Mon Sep 17 00:00:00 2001 From: Abdulelah Bin Mahfoodh Date: Fri, 29 May 2020 12:26:37 +0300 Subject: [PATCH 2/2] Sorting --- identify/extensions.py | 2 +- identify/interpreters.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/identify/extensions.py b/identify/extensions.py index e2de2ae..bbbf543 100644 --- a/identify/extensions.py +++ b/identify/extensions.py @@ -197,8 +197,8 @@ '.bash_aliases': EXTENSIONS['bash'], '.bash_profile': EXTENSIONS['bash'], '.bowerrc': EXTENSIONS['json'] | {'bowerrc'}, - '.cshrc': EXTENSIONS['csh'], '.coveragerc': EXTENSIONS['ini'] | {'coveragerc'}, + '.cshrc': EXTENSIONS['csh'], '.dockerignore': {'text', 'dockerignore'}, '.editorconfig': {'text', 'editorconfig'}, '.gitconfig': EXTENSIONS['ini'] | {'gitconfig'}, diff --git a/identify/interpreters.py b/identify/interpreters.py index af0130b..bcffb5a 100644 --- a/identify/interpreters.py +++ b/identify/interpreters.py @@ -4,6 +4,7 @@ INTERPRETERS = { 'bash': {'shell', 'bash'}, + 'csh': {'shell', 'csh'}, 'dash': {'shell', 'dash'}, 'node': {'javascript'}, 'nodejs': {'javascript'}, @@ -15,5 +16,4 @@ 'sh': {'shell', 'sh'}, 'tcsh': {'shell', 'tcsh'}, 'zsh': {'shell', 'zsh'}, - 'csh': {'shell', 'csh'}, }