diff --git a/.github/workflows/linting.yaml b/.github/workflows/linting.yaml index 8712bb5..baa780b 100644 --- a/.github/workflows/linting.yaml +++ b/.github/workflows/linting.yaml @@ -17,24 +17,20 @@ jobs: steps: - name: โคต๏ธ Check out code from GitHub uses: actions/checkout@v4.1.1 - - name: ๐Ÿ— Set up Poetry - run: pipx install poetry + - name: ๐Ÿ— Set up uv + uses: astral-sh/setup-uv@v7 - name: ๐Ÿ— Set up Python ${{ env.DEFAULT_PYTHON }} id: python uses: actions/setup-python@v5.0.0 with: python-version: ${{ env.DEFAULT_PYTHON }} - cache: "poetry" - - name: ๐Ÿ— Install workflow dependencies - run: | - poetry config virtualenvs.create true - poetry config virtualenvs.in-project true + cache: "uv" - name: ๐Ÿ— Install Python dependencies - run: poetry install --no-interaction + run: uv sync - name: ๐Ÿš€ Run ruff linter - run: poetry run ruff check --output-format=github . + run: uv run ruff check --output-format=github . - name: ๐Ÿš€ Run ruff formatter - run: poetry run ruff format --check . + run: uv run ruff format --check . pre-commit-hooks: name: Pre-commit-hooks @@ -42,20 +38,16 @@ jobs: steps: - name: โคต๏ธ Check out code from GitHub uses: actions/checkout@v4.1.1 - - name: ๐Ÿ— Set up Poetry - run: pipx install poetry + - name: ๐Ÿ— Set up uv + uses: astral-sh/setup-uv@v7 - name: ๐Ÿ— Set up Python ${{ env.DEFAULT_PYTHON }} id: python uses: actions/setup-python@v5.0.0 with: python-version: ${{ env.DEFAULT_PYTHON }} - cache: "poetry" - - name: ๐Ÿ— Install workflow dependencies - run: | - poetry config virtualenvs.create true - poetry config virtualenvs.in-project true + cache: "uv" - name: ๐Ÿ— Install Python dependencies - run: poetry install --no-interaction + run: uv sync - name: ๐Ÿš€ Check Python AST run: uv run prek run check-ast --all-files - name: ๐Ÿš€ Check for case conflicts @@ -91,20 +83,16 @@ jobs: steps: - name: โคต๏ธ Check out code from GitHub uses: actions/checkout@v4.1.1 - - name: ๐Ÿ— Set up Poetry - run: pipx install poetry + - name: ๐Ÿ— Set up uv + uses: astral-sh/setup-uv@v7 - name: ๐Ÿ— Set up Python ${{ env.DEFAULT_PYTHON }} id: python uses: actions/setup-python@v5.0.0 with: python-version: ${{ env.DEFAULT_PYTHON }} - cache: "poetry" - - name: ๐Ÿ— Install workflow dependencies - run: | - poetry config virtualenvs.create true - poetry config virtualenvs.in-project true + cache: "uv" - name: ๐Ÿ— Install Python dependencies - run: poetry install --no-interaction + run: uv sync - name: ๐Ÿš€ Run pylint run: uv run prek run pylint --all-files @@ -114,22 +102,18 @@ jobs: steps: - name: โคต๏ธ Check out code from GitHub uses: actions/checkout@v4.1.1 - - name: ๐Ÿ— Set up Poetry - run: pipx install poetry + - name: ๐Ÿ— Set up uv + uses: astral-sh/setup-uv@v7 - name: ๐Ÿ— Set up Python ${{ env.DEFAULT_PYTHON }} id: python uses: actions/setup-python@v5.0.0 with: python-version: ${{ env.DEFAULT_PYTHON }} - cache: "poetry" - - name: ๐Ÿ— Install workflow dependencies - run: | - poetry config virtualenvs.create true - poetry config virtualenvs.in-project true + cache: "uv" - name: ๐Ÿ— Install Python dependencies - run: poetry install --no-interaction + run: uv sync - name: ๐Ÿš€ Run yamllint - run: poetry run yamllint . + run: uv run yamllint . prettier: name: Prettier @@ -137,20 +121,16 @@ jobs: steps: - name: โคต๏ธ Check out code from GitHub uses: actions/checkout@v4.1.1 - - name: ๐Ÿ— Set up Poetry - run: pipx install poetry + - name: ๐Ÿ— Set up uv + uses: astral-sh/setup-uv@v7 - name: ๐Ÿ— Set up Python ${{ env.DEFAULT_PYTHON }} id: python uses: actions/setup-python@v5.0.0 with: python-version: ${{ env.DEFAULT_PYTHON }} - cache: "poetry" - - name: ๐Ÿ— Install workflow dependencies - run: | - poetry config virtualenvs.create true - poetry config virtualenvs.in-project true + cache: "uv" - name: ๐Ÿ— Install Python dependencies - run: poetry install --no-interaction + run: uv sync - name: ๐Ÿ— Set up Node.js uses: actions/setup-node@v4.0.2 with: