-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
53 lines (53 loc) · 1.56 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
41
42
43
44
45
46
47
48
49
50
51
52
53
---
repos:
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.8.0
hooks:
- id: black
language_version: python3
- repo: https://github.com/pycqa/pylint
rev: v3.2.7
hooks:
- id: pylint
language_version: python3
exclude: doc/convert_samples.py|doc/conf.py|versioneer.py|khiops/_version.py|setup.py
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
language_version: python3
exclude: khiops/samples/samples.py|khiops/samples/samples_sklearn.py
- id: isort
alias: isort-samples
name: isort-samples
language_version: python3
files: khiops/samples/samples.py|khiops/samples/samples_sklearn.py
args: [--no-sections]
- repo: https://github.com/lyz-code/yamlfix/
rev: 1.17.0
hooks:
- id: yamlfix
exclude: packaging/conda/meta.yaml
language: python
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.29.2
hooks:
- id: check-github-workflows
name: gh-workflows
args: [--verbose]
- id: check-github-actions
name: gh-actions
args: [--verbose]
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: shellcheck
name: shellcheck
- repo: local
hooks:
- id: samples-generation
name: samples-generation
entry: bash doc/convert-samples-hook
language: system
files: khiops/samples/samples.py|khiops/samples/samples_sklearn.py
pass_filenames: false