|
a |
|
b/.pre-commit-config.yaml |
|
|
1 |
# See https://pre-commit.com for more information |
|
|
2 |
# See https://pre-commit.com/hooks.html for more hooks |
|
|
3 |
repos: |
|
|
4 |
- repo: https://github.com/pre-commit/pre-commit-hooks |
|
|
5 |
rev: v3.2.0 |
|
|
6 |
hooks: |
|
|
7 |
- id: trailing-whitespace |
|
|
8 |
exclude: | |
|
|
9 |
(?x)^( |
|
|
10 |
tests/resources/.*| |
|
|
11 |
edsnlp/resources/.* |
|
|
12 |
)$ |
|
|
13 |
- id: no-commit-to-branch |
|
|
14 |
- id: end-of-file-fixer |
|
|
15 |
- id: check-yaml |
|
|
16 |
args: ["--unsafe"] |
|
|
17 |
- id: check-toml |
|
|
18 |
- id: check-json |
|
|
19 |
- id: check-symlinks |
|
|
20 |
- id: check-added-large-files |
|
|
21 |
- id: detect-private-key |
|
|
22 |
# ruff |
|
|
23 |
- repo: https://github.com/charliermarsh/ruff-pre-commit |
|
|
24 |
# Ruff version. |
|
|
25 |
rev: 'v0.9.6' |
|
|
26 |
hooks: |
|
|
27 |
- id: ruff |
|
|
28 |
args: ['--config', 'pyproject.toml', '--fix', '--show-fixes'] |
|
|
29 |
- id: ruff-format |
|
|
30 |
args: ['--config', 'pyproject.toml', '--diff'] |
|
|
31 |
- id: ruff-format |
|
|
32 |
args: ['--config', 'pyproject.toml'] |
|
|
33 |
- repo: https://github.com/asottile/blacken-docs |
|
|
34 |
rev: v1.10.0 |
|
|
35 |
hooks: |
|
|
36 |
- id: blacken-docs |
|
|
37 |
additional_dependencies: [black==20.8b1] |
|
|
38 |
exclude: notebooks/ |
|
|
39 |
- repo: https://github.com/econchick/interrogate |
|
|
40 |
rev: 237be78 |
|
|
41 |
hooks: |
|
|
42 |
- id: interrogate |
|
|
43 |
args: ["--config=pyproject.toml"] |
|
|
44 |
pass_filenames: false |