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