diff options
author | Christian Cleberg <hello@cleberg.net> | 2025-04-05 13:50:08 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-05 13:50:08 -0500 |
commit | fc0ea096722178bd609bce168d194c926d411a38 (patch) | |
tree | 1a587e9dcc7c2718731c20e4b667c7c9ca913369 /.github/workflows | |
parent | 4d82554601ad5aba75accd4917bbad1969892203 (diff) | |
download | nba-scores-fc0ea096722178bd609bce168d194c926d411a38.tar.gz nba-scores-fc0ea096722178bd609bce168d194c926d411a38.tar.bz2 nba-scores-fc0ea096722178bd609bce168d194c926d411a38.zip |
migrate from pylint to ruff (#3)
* migrate from pylint to ruff
* Commit from GitHub Actions (Ruff)
---------
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/pylint.yml | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 2a34a73..80f35df 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -1,4 +1,4 @@ -name: Pylint +name: Ruff on: [push] @@ -7,18 +7,28 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10"] + python-version: ["3.x"] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + ref: ${{ github.event.pull_request.head.ref }} - name: Install dependencies run: | python -m pip install --upgrade pip pip install -r requirements.txt - pip install pylint - - name: Analysing the code with pylint + - name: Install Ruff + uses: astral-sh/ruff-action@v3.2.2 + - name: Ruff Actions run: | - pylint -d R0801 -d W0311 -d R0914 $(git ls-files '*.py')
\ No newline at end of file + ruff check --fix + ruff format + - name: Add and Commit + uses: EndBug/add-and-commit@v9 + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + default_author: github_actions + pathspec_error_handling: ignore |