forked from lektor/lektor
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
40 lines (39 loc) · 1.19 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
repos:
- repo: https://github.com/ambv/black
rev: "23.7.0"
hooks:
- id: black
- repo: https://github.com/asottile/reorder_python_imports
rev: "v3.10.0"
hooks:
- id: reorder-python-imports
args: ["--py38-plus"]
- repo: https://github.com/asottile/pyupgrade
rev: "v3.15.0"
hooks:
- id: pyupgrade
args: ["--py38-plus"]
- repo: https://github.com/pycqa/flake8
rev: "6.1.0"
hooks:
- id: flake8
language_version: python3
additional_dependencies:
# NB: autoupdate does not pick up flake8-bugbear since it is a
# transitive dependency. Make sure to update flake8-bugbear
# manually on a regular basis.
- flake8-bugbear==23.7.10
- repo: local
hooks:
- id: eslint
name: eslint
language: node
entry: ./frontend/node_modules/eslint/bin/eslint.js --fix --max-warnings 0
require_serial: true
files: \.(ts|tsx)$
- id: prettier
name: prettier
language: node
entry: ./frontend/node_modules/prettier/bin/prettier.cjs --write --list-different
require_serial: true
files: \.(ts|tsx|js|less|ya?ml|md)$