-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
Copy path.pre-commit-config.yaml
40 lines (38 loc) · 1.15 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
repos:
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.1.3
hooks:
- id: ruff
name: ruff
args: [--fix, --select=I, pandasai, examples, tests]
- id: ruff-format
name: ruff-format
- repo: https://github.com/python-poetry/poetry
rev: 2.0.1
hooks:
- id: poetry-check # Ensures your `pyproject.toml` is valid
- id: poetry-lock # Ensures the `poetry.lock` file is in sync with `pyproject.toml`
- repo: local
hooks:
- id: install-deps
name: install-deps
entry: make install_deps install_extension_deps
language: system
pass_filenames: false
always_run: true
stages: [commit]
- id: pytest-check
name: pytest-check
entry: make test_all
language: system
pass_filenames: false
always_run: true
stages: [commit]
- repo: https://github.com/sourcery-ai/sourcery
rev: v1.11.0
hooks:
- id: sourcery
# The best way to use Sourcery in a pre-commit hook:
# * review only changed lines:
# * omit the summary
args: [--diff=git diff HEAD, --no-summary]