diff options
author | Christian Cleberg <hello@cleberg.net> | 2025-04-05 13:43:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-05 13:43:01 -0500 |
commit | bee22b97b652cd04fa470d7f31c3b917e44f3ab9 (patch) | |
tree | e1ec29a3388b94a8d41e3b28ca1f2357f3efaec7 /.github | |
parent | 3041472781997ff66c5f9fa80a7f5ffbd284a438 (diff) | |
download | audit-tools-bee22b97b652cd04fa470d7f31c3b917e44f3ab9.tar.gz audit-tools-bee22b97b652cd04fa470d7f31c3b917e44f3ab9.tar.bz2 audit-tools-bee22b97b652cd04fa470d7f31c3b917e44f3ab9.zip |
migrate from pylint to ruff (#1)
* migrate from pylint to ruff
* Commit from GitHub Actions (Pylint)
* rename pylint.yml to ruff.yml
* only run ruff-action when python files change
---------
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/pylint.yml | 23 | ||||
-rw-r--r-- | .github/workflows/ruff.yml | 37 |
2 files changed, 37 insertions, 23 deletions
diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml deleted file mode 100644 index 2eaeecd..0000000 --- a/.github/workflows/pylint.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Pylint - -on: [push] - -jobs: - build: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.8", "3.9", "3.10"] - steps: - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install pylint pandas dash plotly.express - - name: Analysing the code with pylint - run: | - pylint -d R0801 $(git ls-files '*.py') diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml new file mode 100644 index 0000000..e7212d3 --- /dev/null +++ b/.github/workflows/ruff.yml @@ -0,0 +1,37 @@ +name: Ruff + +on: + push: + paths: + - '**.py' + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.x"] + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + 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 pandas dash plotly.express + - name: Install Ruff + uses: astral-sh/ruff-action@v3.2.2 + - name: Ruff Actions + run: | + 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 |