Skip to content

Remove unused Optional import after type annotation updates #5

Remove unused Optional import after type annotation updates

Remove unused Optional import after type annotation updates #5

Workflow file for this run

name: Pre-commit Checks
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Full history for better pre-commit caching
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pre-commit
pip install -r requirements-ci.txt
- name: Install pre-commit hooks
run: |
pre-commit install --install-hooks
- name: Run pre-commit on all files
run: |
pre-commit run --all-files
- name: Check markdown files
run: |
# Additional markdown checks if needed
echo "Markdown files validated by pre-commit hooks"
- name: Validate documentation structure
run: |
python3 .github/scripts/validate_docs_structure.py