Commit 848a31b61b
Verified · cmc
Layout: unified · split
.github/FUNDING.yml added +1
| @@ -0,0 +1 @@ | |||
| 1 | github: [ccleberg] | ||
.github/workflows/ruff.yml added +37
| @@ -0,0 +1,37 @@ | |||
| 1 | name: Ruff | ||
| 2 | |||
| 3 | on: | ||
| 4 | push: | ||
| 5 | paths: | ||
| 6 | - '**.py' | ||
| 7 | |||
| 8 | jobs: | ||
| 9 | build: | ||
| 10 | runs-on: ubuntu-latest | ||
| 11 | strategy: | ||
| 12 | matrix: | ||
| 13 | python-version: ["3.x"] | ||
| 14 | steps: | ||
| 15 | - uses: actions/checkout@v4 | ||
| 16 | - name: Set up Python ${{ matrix.python-version }} | ||
| 17 | uses: actions/setup-python@v5 | ||
| 18 | with: | ||
| 19 | python-version: ${{ matrix.python-version }} | ||
| 20 | ref: ${{ github.event.pull_request.head.ref }} | ||
| 21 | - name: Install dependencies | ||
| 22 | run: | | ||
| 23 | python -m pip install --upgrade pip | ||
| 24 | pip install pandas plotly | ||
| 25 | - name: Install Ruff | ||
| 26 | uses: astral-sh/ruff-action@v3.2.2 | ||
| 27 | - name: Ruff Actions | ||
| 28 | run: | | ||
| 29 | ruff check --fix | ||
| 30 | ruff format | ||
| 31 | - name: Add and Commit | ||
| 32 | uses: EndBug/add-and-commit@v9 | ||
| 33 | env: | ||
| 34 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| 35 | with: | ||
| 36 | default_author: github_actions | ||
| 37 | pathspec_error_handling: ignore | ||