Skip to content

Commit

Permalink
Merge pull request #64 from randovania/feature/use-pre-commit
Browse files Browse the repository at this point in the history
Use pre-commit for CI
  • Loading branch information
henriquegemignani authored Jul 5, 2023
2 parents 6ab0b9c + 7ad0a78 commit 9788680
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,26 +107,6 @@ jobs:
with:
password: ${{ secrets.pypi_password }}

ruff:
runs-on: 'ubuntu-latest'

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Install Python packages
run: python -m pip install ruff==0.0.272

- name: Run ruff
run: ruff check --format=github .

full_test:
runs-on: self-hosted

Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.0.272
rev: v0.0.277
hooks:
- id: ruff
args: [ --fix, --exit-non-zero-on-fix ]

0 comments on commit 9788680

Please sign in to comment.