Skip to content

Commit

Permalink
Pin ruff version used in CICD
Browse files Browse the repository at this point in the history
  • Loading branch information
bergsalex committed Aug 15, 2024
1 parent 52f2d12 commit dc6096c
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/_format-lint-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,17 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ inputs.python-version }}
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
if [[ "$RUNNER_OS" == "macOS" ]]; then
echo "/Users/runner/.local/bin:$PATH" >> $GITHUB_PATH
fi
- name: Configure Poetry
run: poetry config virtualenvs.create false
- name: Install Black and Ruff
run: pip install black ruff
run: poetry install --only dev
- name: Run Ruff Linter
run: ruff check src/ tests/
run: ruff src/ tests/
- name: Run Black Formatter
run: black src/ tests/
run: black --check src/ tests/

0 comments on commit dc6096c

Please sign in to comment.