-
Notifications
You must be signed in to change notification settings - Fork 358
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
32 lines (31 loc) · 910 Bytes
/
.pre-commit-config.yaml
File metadata and controls
32 lines (31 loc) · 910 Bytes
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
default_language_version:
python: python3.12
repos:
- repo: https://github.com/asottile/add-trailing-comma
rev: v3.1.0
hooks:
- id: add-trailing-comma
# TODO: Remove this line. For now, we only format the api/ directory
files: ^api/
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: double-quote-string-fixer
- id: trailing-whitespace
exclude: "^(website/static/vendor/|osf/metadata/definitions/.*\\.xsd)"
- repo: https://github.com/pycqa/flake8
rev: '7.0.0' # pick a git hash / tag to point to
hooks:
- id: flake8
additional_dependencies: ["flake8-mutable==1.2.0"]
- repo: https://github.com/pre-commit/mirrors-jshint
rev: v2.13.6
hooks:
- id: jshint
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.7
hooks:
- id: ruff
args: [ --fix ]
- id: ruff-format
args: ["--line-length=79"]