-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
51 lines (50 loc) · 1.66 KB
/
.pre-commit-config.yaml
File metadata and controls
51 lines (50 loc) · 1.66 KB
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
exclude: |
(?x)(
^bsyncviewer/static/css/owl.carousel.min.css|
^bsyncviewer/static/css/font-awesome.min.css|
^bsyncviewer/static/css/owl.theme.default.min.css|
^bsyncviewer/static/css/magnific-popup.css|
^bsyncviewer/static/css/responsive.css|
^bsyncviewer/static/css/et-line.css|
^bsyncviewer/static/img/better-logo.svg
)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-ast
- id: check-added-large-files
# Increased max file size from 2000KB to 75000KB to accommodate large files from being added (matching nginx config).
args: ["--maxkb=75000"]
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-toml
- id: check-yaml
- id: check-json
- id: name-tests-test
args: ["--pytest-test-first"]
- id: fix-byte-order-marker
- id: check-case-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-xml
- id: debug-statements
- id: mixed-line-ending
- id: pretty-format-json
args: ["--autofix", "--no-sort-keys"]
files: \.(json|template)$
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.3
hooks:
- id: prettier
# for now ignoring html, javascript
types_or: [yaml, markdown, css, scss]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.7
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --output-format=full]
types_or: [python, pyi, jupyter]
- id: ruff-format
types_or: [python, pyi, jupyter]