Skip to content

fix: pin claude-code-lint to 0.2.2 to avoid inquirer ESM bug #19

fix: pin claude-code-lint to 0.2.2 to avoid inquirer ESM bug

fix: pin claude-code-lint to 0.2.2 to avoid inquirer ESM bug #19

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
shellcheck:
name: ShellCheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Run ShellCheck
run: shellcheck scripts/*.sh
shfmt:
name: shfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install shfmt
run: |
SHFMT_VERSION=3.10.0
curl -sS -L "https://github.com/mvdan/sh/releases/download/v${SHFMT_VERSION}/shfmt_v${SHFMT_VERSION}_linux_amd64" -o /usr/local/bin/shfmt
chmod +x /usr/local/bin/shfmt
- name: Check formatting
run: shfmt -d scripts/*.sh
markdownlint:
name: Markdown Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: DavidAnson/markdownlint-cli2-action@v22
with:
globs: '**/*.md'
prettier:
name: Prettier
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Run Prettier check
run: npx prettier@3 --check '**/*.{json,yml,yaml,md}' --ignore-path .prettierignore
ruff:
name: Ruff
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: '3.12'
- name: Install Ruff
run: pip install ruff
- name: Check linting
run: ruff check clickwheel/
- name: Check formatting
run: ruff format --check clickwheel/
test:
name: Tests (${{ matrix.os }}, ${{ matrix.python-version }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ['3.11', '3.12', '3.13']
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install package with dev dependencies
run: pip install -e ".[dev]"
- name: Run tests
run: python -m pytest tests/ -v --tb=short
claude-lint:
name: Claude Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Run claude-code-lint
run: npx claude-code-lint@0.2.2