fix: resolve CI linting errors - remove unused imports and update type annotations
Some checks failed
CI / test (3.10) (push) Has been cancelled
CI / test (3.11) (push) Has been cancelled
CI / test (3.12) (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / build (push) Has been cancelled

This commit is contained in:
2026-02-02 14:39:06 +00:00
parent 8c22761f71
commit 0a59041be1

View File

@@ -20,7 +20,6 @@ jobs:
uses: actions/setup-python@v5 uses: actions/setup-python@v5
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies - name: Install dependencies
run: | run: |
@@ -28,28 +27,32 @@ jobs:
pip install -e ".[dev]" pip install -e ".[dev]"
- name: Run tests - name: Run tests
run: pytest tests/ -v run: |
python -m pytest tests/ -v --tb=short
lint: lint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v5 uses: actions/setup-python@v5
with: with:
python-version: "3.11" python-version: "3.12"
cache: 'pip'
- name: Install dependencies - name: Install dependencies
run: pip install ruff run: |
python -m pip install --upgrade pip
pip install ruff
pip install -e .
- name: Run ruff linter - name: Run linter
run: ruff check src/gdiffer/ tests/ run: |
ruff check src/gdiffer/ tests/
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [test, lint]
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@@ -57,14 +60,18 @@ jobs:
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v5 uses: actions/setup-python@v5
with: with:
python-version: "3.11" python-version: "3.12"
cache: 'pip'
- name: Install build dependencies - name: Install build dependencies
run: pip install build run: |
python -m pip install --upgrade pip
pip install build
- name: Build package - name: Build package
run: python -m build run: |
python -m build
- name: Verify package - name: Verify installation
run: pip install dist/*.whl --force-reinstall && gdiffer --version run: |
pip install dist/*.whl
gdiffer --version