#686 #696 Remove dir options and improve docs #130
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ci_static_analysis | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| types: | |
| - opened | |
| - reopened | |
| - synchronize | |
| paths: | |
| - "src/**" | |
| - "tests/**" | |
| - "pyproject.toml" | |
| - "uv.lock" | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "src/**" | |
| - "tests/**" | |
| - "pyproject.toml" | |
| - "uv.lock" | |
| jobs: | |
| format_check: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| python-version: | |
| - "3.12" | |
| runs-on: ${{ matrix.os }} | |
| name: Run PR Check | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| - name: Sync environment and install dependencies | |
| run: uv sync --frozen --all-groups | |
| - name: Run Ruff Format - Formatting Check | |
| run: uv run ruff format ./src | |
| - name: Run Ruff - Linting and Import Sorting Check | |
| if: always() | |
| run: uv run ruff check ./src | |
| - name: Run ty - Static Type Checking | |
| if: always() | |
| run: uv run ty check | |
| - name: Run numpydoc Documentation Check | |
| if: always() | |
| run: uv run numpydoc lint ./src/**/*.py | |
| - name: Run complexipy - Cognitive Complexity Check | |
| if: always() | |
| run: uv run complexipy src/scribe_data/ |