Skip to content

Commit

Permalink
ci: Adds a job for precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
frgfm committed Jan 7, 2024
1 parent 61f2b93 commit 8d85b4d
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,22 @@ jobs:
pip install ruff==0.1.11
ruff --version
ruff format --check --diff .
precommit-hooks:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python: [3.9]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
architecture: x64
- name: Run ruff
run: |
pip install pre-commit
pre-commit install
pre-commit --version
pre-commit run --all-files

0 comments on commit 8d85b4d

Please sign in to comment.