fix: scope sample assertions, normalize existing_keys case, broaden r… #2444
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: Code Format | |
| on: | |
| push: | |
| branches-ignore: | |
| - transfer | |
| - staging | |
| - production | |
| pull_request: | |
| branches-ignore: | |
| - transfer | |
| - staging | |
| - production | |
| permissions: | |
| contents: read | |
| jobs: | |
| flake8_py3: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out source repository | |
| uses: actions/checkout@v6.0.2 | |
| - name: Set up Python environment - 3.12 | |
| uses: actions/setup-python@v6.2.0 | |
| with: | |
| python-version: "3.12" | |
| cache: "pip" | |
| - name: Run flake8 | |
| uses: py-actions/flake8@v2 | |
| with: | |
| ignore: "F401,E501" | |
| args: "--exit-zero --select=E" | |
| format: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - uses: actions/checkout@v6.0.2 | |
| with: | |
| ref: ${{ github.head_ref }} | |
| - uses: psf/black@stable | |
| with: | |
| options: "--verbose" | |
| - name: Commit changes | |
| uses: stefanzweifel/git-auto-commit-action@v7.1.0 | |
| with: | |
| commit_message: Formatting changes | |
| branch: ${{ github.head_ref }} |