diff --git a/.forgejo/workflows/pylint.yaml b/.forgejo/workflows/pylint.yaml index cc245d1..59e9243 100644 --- a/.forgejo/workflows/pylint.yaml +++ b/.forgejo/workflows/pylint.yaml @@ -14,10 +14,13 @@ jobs: run: | add-apt-repository ppa:deadsnakes/ppa apt install -y python3.11 gcc python3.11-dev python3.11-venv + - name: Install Poetry + run: | + curl -sSL https://install.python-poetry.org | python3.11 - + source $HOME/.poetry/env - name: Install dependencies run: | - python3.11 -m pip install --upgrade pip - python3.11 -m pip install pylint - python3.11 -m pip install -U Red-DiscordBot pytimeparse2 yt-dlp + poetry install --with dev - name: Analysing the code with Pylint - run: pylint $(git ls-files '*.py') + run: | + poetry run pylint $(git ls-files '*.py')