forked from Leg0shii/smart-documents
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
52 lines (47 loc) · 1.22 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
51
52
# .pre-commit-config.yaml
repos:
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.10.1 # Use the latest stable version
hooks:
- id: isort
name: isort
language_version: python3
files: ^backend/
# Python hooks
- repo: https://github.com/psf/black
rev: 24.8.0
hooks:
- id: black
language_version: python3
files: ^backend/
- repo: https://github.com/pycqa/flake8
rev: 7.1.1
hooks:
- id: flake8
additional_dependencies: [flake8]
files: ^backend/
# JavaScript hooks
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v9.11.1
hooks:
- id: eslint
name: eslint
entry: npx eslint
language: node
types: [javascript, jsx]
files: ^frontend/
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
hooks:
- id: prettier
name: prettier
entry: npx prettier --write
language: node
types: [javascript, jsx, css, html, json, markdown]
files: ^frontend/
# YAML validation
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-yaml
files: \.(yml|yaml)$