forked from ricklamers/gpt-code-ui
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
45 lines (45 loc) · 1.28 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-merge-conflict
- id: debug-statements
- id: mixed-line-ending
- id: check-case-conflict
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
# - id: check-yaml
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.1.11
hooks:
# Run the linter.
- id: ruff
args:
- --fix
- --exit-non-zero-on-fix
# Run the formatter.
- id: ruff-format
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v3.1.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: []
# TODO enable after fixing existing issues
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.8.0"
hooks:
- id: mypy
additional_dependencies: [types-requests==2.31.0.20240106]
args: [--implicit-optional]
- repo: local
hooks:
- id: eslint
name: eslint_frontend
entry: ./frontend/node_modules/.bin/eslint --fix
files: ^frontend/.*\.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx
types: [file]
language: system