Skip to content

Commit

Permalink
chore: update lint workflow to use uv
Browse files Browse the repository at this point in the history
Co-Authored-By: Aaron <AJ> Steers <[email protected]>
  • Loading branch information
devin-ai-integration[bot] and aaronsteers committed Jan 28, 2025
1 parent 36d0c2b commit d756794
Showing 1 changed file with 15 additions and 21 deletions.
36 changes: 15 additions & 21 deletions .github/workflows/python_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,19 @@ jobs:
# Common steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Poetry
uses: Gr1N/setup-poetry@v9
with:
poetry-version: "2.0.1"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'poetry'
cache: 'pip'
- name: Install uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Install dependencies
run: poetry install
run: uv pip install -e ".[dev]"

# Job-specifc step(s):
- name: Format code
run: poetry run ruff check .
run: uv run ruff check .

ruff-format-check:
name: Ruff Format Check
Expand All @@ -40,21 +38,19 @@ jobs:
# Common steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Poetry
uses: Gr1N/setup-poetry@v9
with:
poetry-version: "1.7.1"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'poetry'
cache: 'pip'
- name: Install uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Install dependencies
run: poetry install
run: uv pip install -e ".[dev]"

# Job-specifc step(s):
- name: Check code format
run: poetry run ruff format --check .
run: uv run ruff format --check .

mypy-check:
name: MyPy Check
Expand All @@ -63,18 +59,16 @@ jobs:
# Common steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Poetry
uses: Gr1N/setup-poetry@v9
with:
poetry-version: "1.7.1"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'poetry'
cache: 'pip'
- name: Install uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Install dependencies
run: poetry install
run: uv pip install -e ".[dev]"

# Job-specifc step(s):
- name: Check MyPy typing
run: poetry run mypy .
run: uv run mypy .

0 comments on commit d756794

Please sign in to comment.