diff --git a/identify/identify.py b/identify/identify.py index 0279ba8..f29825d 100644 --- a/identify/identify.py +++ b/identify/identify.py @@ -53,8 +53,7 @@ def tags_from_path(path: str) -> set[str]: tags = {FILE} - executable = os.access(path, os.X_OK) - if executable: + if executable := os.access(path, os.X_OK): tags.add(EXECUTABLE) else: tags.add(NON_EXECUTABLE) diff --git a/identify/interpreters.py b/identify/interpreters.py index 3022e00..f0abb82 100644 --- a/identify/interpreters.py +++ b/identify/interpreters.py @@ -18,8 +18,24 @@ 'python': {'python'}, 'python2': {'python', 'python2'}, 'python3': {'python', 'python3'}, + 'python2.6': {'python', 'python2', 'python2.6'}, + 'python2.7': {'python', 'python2', 'python2.7'}, + 'python3.3': {'python', 'python3', 'python3.3'}, + 'python3.4': {'python', 'python3', 'python3.4'}, + 'python3.5': {'python', 'python3', 'python3.5'}, + 'python3.6': {'python', 'python3', 'python3.6'}, + 'python3.7': {'python', 'python3', 'python3.7'}, + 'python3.8': {'python', 'python3', 'python3.8'}, + 'python3.9': {'python', 'python3', 'python3.9'}, + 'python3.10': {'python', 'python3', 'python3.10'}, + 'python3.11': {'python', 'python3', 'python3.11'}, + 'python3.12': {'python', 'python3', 'python3.12'}, + 'python3.13': {'python', 'python3', 'python3.13'}, 'ruby': {'ruby'}, + 'sed': {'sed'}, 'sh': {'shell', 'sh'}, 'tcsh': {'shell', 'tcsh'}, + 'xdotool': {'xdotool'}, + 'xonsh': {'shell', 'xonsh'}, 'zsh': {'shell', 'zsh'}, }