-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaction.yml
More file actions
29 lines (25 loc) · 843 Bytes
/
action.yml
File metadata and controls
29 lines (25 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: "Code Quality Checks"
description: "Runs formatting, linting, and type checking"
inputs:
check-type:
description: "Type of check to run (format, lint, or type-check)"
required: true
source-dir:
description: "Source directory to check"
required: false
default: "src/"
runs:
using: "composite"
steps:
- name: Run Ruff Formatting
if: inputs.check-type == 'format'
shell: bash
run: uv run ruff format --config pyproject.toml ${{ inputs.source-dir }}
- name: Run Ruff Linting
if: inputs.check-type == 'lint'
shell: bash
run: uv run ruff check --config pyproject.toml ${{ inputs.source-dir }}
- name: Run Mypy Type Checking
if: inputs.check-type == 'type-check'
shell: bash
run: uv run mypy --config-file pyproject.toml ${{ inputs.source-dir }}