#!/bin/bash PWD=`pwd` if [ -d "$PWD/venv" ] then echo "Run pylint inside venv ($PWD/venv)..." $PWD/venv/bin/pylint "$@" exit $? elif [ -e "$PWD/pyproject.toml" ] then echo "Run pylint using poetry..." poetry run pylint "$@" exit $? else echo "Run pylint at system scope..." pylint "$@" exit $? fi