fix: resolve CI linting errors - remove unused imports and update type annotations
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user