-
Notifications
You must be signed in to change notification settings - Fork 6
/
.pre-commit-config.yaml
35 lines (34 loc) · 1.08 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
ci:
skip: [codespell]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-added-large-files
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 24.8.0
hooks:
- id: black
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.6.2 # Replace with the latest version available
hooks:
- id: ruff
args: ["--fix"]
exclude: ^(src/b2aiprep/_version\.py|versioneer\.py)$
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort
exclude: ^(src/b2aiprep/_version\.py|versioneer\.py)$
args: ["--profile", "black"]
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
args: ["--skip=*.json"]
exclude: ^(src/b2aiprep/_version\.py|versioneer\.py|pyproject\.toml|CHANGELOG\.md|docs/b2ai_script\.ipynb)$