forked from shap/shap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
50 lines (46 loc) · 1.95 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
ci:
autoupdate_schedule: monthly
exclude: '.*tree_shap_paper.*|.*user_studies.*'
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.0
hooks:
- id: ruff
types_or: [python, pyi, jupyter]
args: [ --fix, --exit-non-zero-on-fix ]
- id: ruff-format
types_or: [python, pyi, jupyter]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-added-large-files
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: mixed-line-ending
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/stefsmeets/nbcheckorder/
rev: v0.2.0
hooks:
- id: nbcheckorder
# TODO: get passing on all notebooks
exclude: |
(?x)^(
docs/notebooks/plots/bar.ipynb|
notebooks/api_examples/plots/decision_plot.ipynb|
notebooks/api_examples/plots/heatmap.ipynb|
notebooks/api_examples/plots/scatter.ipynb|
notebooks/api_examples/plots/text.ipynb|
notebooks/api_examples/plots/violin.ipynb|
notebooks/image_examples/image_captioning/Image.Captioning.using.Azure.Cognitive.Services.ipynb|
notebooks/image_examples/image_captioning/Image.Captioning.using.Open.Source.ipynb|
notebooks/image_examples/image_classification/Image.Multi.Class.ipynb|
notebooks/tabular_examples/model_agnostic/Census.income.classification.with.scikit-learn.ipynb|
notebooks/tabular_examples/model_agnostic/Squashing.Effect.ipynb|
notebooks/tabular_examples/tree_based_models/Fitting.a.Linear.Simulation.with.XGBoost.ipynb|
notebooks/tabular_examples/tree_based_models/Perfomance.Comparison.ipynb|
notebooks/text_examples/sentiment_analysis/Emotion.classification.multiclass.example.ipynb|
notebooks/text_examples/sentiment_analysis/Keras.LSTM.for.IMDB.Sentiment.Classification.ipynb|
notebooks/text_examples/sentiment_analysis/Positive.vs..Negative.Sentiment.Classification.ipynb
)$