forked from okfde/froide
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
40 lines (39 loc) · 1.23 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/pycqa/isort
rev: 5.11.5
hooks:
- id: isort
args: ['--profile', 'black', '--filter-files']
- repo: https://github.com/psf/black
rev: '23.3.0' # Replace by any tag/version: https://github.com/psf/black/tags
hooks:
- id: black
language_version: python3 # Should be a command that runs python3.6+
- repo: https://github.com/pycqa/flake8
rev: '6.0.0' # pick a git hash / tag to point to
hooks:
- id: flake8
additional_dependencies: [flake8-bugbear==23.5.9]
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.45.0
hooks:
- id: eslint
files: \.(js|ts|vue)?$
types: [file]
additional_dependencies:
- eslint-config-standard-with-typescript
- eslint-plugin-html
- eslint-plugin-import
- eslint-plugin-n
- eslint-plugin-promise
- eslint-plugin-vue
- prettier
- eslint-plugin-prettier
- eslint-config-standard
- repo: https://github.com/Riverside-Healthcare/djLint
rev: v1.33.0
hooks:
- id: djlint-reformat-django
- id: djlint-django
exclude: ^.*/migrations/.*$|eslintrc.js