Skip to content

Commit 6ec1e7a

Browse files
author
kx79wq
committed
TST: add linting to cicd tests
1 parent ee55e5d commit 6ec1e7a

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ jobs:
4040
pip install ".[test,pandas,spark]"
4141
fi
4242
43+
- name: Lint with pre-commit
44+
run: |
45+
pip install pre-commit
46+
pre-commit run --all-files --show-diff-on-failure
47+
4348
- name: Test with pytest
4449
run: |
4550
pytest tests

.pre-commit-config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
repos:
2+
- repo: https://github.com/astral-sh/ruff-pre-commit
3+
rev: v0.1.6
4+
hooks:
5+
- id: ruff
6+
args: [--fix]
7+
exclude: notebooks/
8+
- id: ruff-format
9+
exclude: notebooks/

0 commit comments

Comments
 (0)