fix(convnext_v2): add res_scale to stabilize from-scratch training #106
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
| # WaveDL Linting & Formatting Pipeline | |
| # ===================================== | |
| # Runs Ruff linter and formatter on every push and pull request. | |
| # This ensures consistent code style across the project. | |
| # | |
| # Ruff is an extremely fast Python linter and formatter, written in Rust. | |
| # It replaces Black, Flake8, isort, and more. | |
| # Docs: https://docs.astral.sh/ruff/ | |
| name: Lint | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| # Cancel in-progress runs when a new commit is pushed | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint: | |
| name: Ruff Lint & Format Check | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ['3.11', '3.12', '3.13'] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install Ruff | |
| run: pip install ruff==0.14.10 | |
| - name: Run Ruff linter | |
| run: ruff check . --output-format=github | |
| - name: Run Ruff formatter check | |
| run: ruff format . --check --diff |