diff options
author | Christian Cleberg <hello@cleberg.net> | 2025-04-05 13:36:49 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-05 13:36:49 -0500 |
commit | c8617ce8aecb40ccf1d13c02dcd7d7e74e79b56b (patch) | |
tree | cf901030197768b2aa21d2d3fcf0426948a94111 /.github/workflows | |
parent | 1fc982100a13de26bfca3419d1a6c5a65acad3d2 (diff) | |
download | yoshi-cli-c8617ce8aecb40ccf1d13c02dcd7d7e74e79b56b.tar.gz yoshi-cli-c8617ce8aecb40ccf1d13c02dcd7d7e74e79b56b.tar.bz2 yoshi-cli-c8617ce8aecb40ccf1d13c02dcd7d7e74e79b56b.zip |
migrate from pylint to ruff-action (#4)
* migrate from pylint to ruff-action
* temporarily disable push param
* Commit from GitHub Actions (Pylint)
* re-enable push param
---------
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 | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 6f918b6..caef813 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -1,23 +1,37 @@ name: Pylint -on: [push] +on: + push: + paths: + - '**.py' jobs: build: 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 pylint cryptography prettytable - - name: Analysing the code with pylint + pip install cryptography prettytable + - name: Install Ruff + uses: astral-sh/ruff-action@v3.2.2 + - name: Ruff Actions run: | - pylint -d R0801 $(git ls-files '*.py') + 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
\ No newline at end of file |