This repository has been archived by the owner on Sep 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
90 lines (88 loc) · 2.46 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
exclude: >
(?x)(
migrations/|
docs/|
node_modules/|
static/lib/|
CACHE/|
vendor/
)
files: ^atlas/
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
- id: pretty-format-json
args: [--autofix]
- id: check-json
exclude: package-lock.json
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
- repo: https://github.com/timothycrosley/isort
rev: 5.10.1
hooks:
- id: isort
additional_dependencies: [toml]
- repo: https://github.com/ambv/black
rev: 22.3.0
hooks:
- id: black
language_version: python3.8
# - repo: https://github.com/pre-commit/mirrors-prettier
# rev: 'v2.3.0'
# hooks:
# - id: prettier
# name: prettier-js
# args: [--write,--loglevel=error]
# types: [javascript]
# files: atlas/static/js/.*.js$
# - repo: https://github.com/pre-commit/mirrors-eslint
# rev: 'v7.29.0'
# hooks:
# - id: eslint
# args: [--fix]
# files: atlas/static/js/.*.js$
# types: [file]
# additional_dependencies:
# - eslint-config-prettier@^7.1.0
# - eslint-plugin-prettier@^3.3.1
# - repo: https://github.com/pre-commit/mirrors-prettier
# rev: 'v2.3.2'
# hooks:
# - id: prettier
# name: prettier-css
# args: [--write,--loglevel=error]
# types: [css]
# files: atlas/static/css/.*.css$
# - repo: https://github.com/awebdeveloper/pre-commit-stylelint
# rev: '0.0.2'
# hooks:
# - id: stylelint
# files: atlas/static/css/.*.css$
# args: [--fix]
# additional_dependencies:
# - prettier@^2.2.1
# - stylelint-config-prettier@^8.0.2
# - stylelint-config-standard@^20.0.0
# - stylelint-prettier@^1.1.2
- repo: https://github.com/asottile/pyupgrade
rev: v2.32.1
hooks:
- id: pyupgrade
# - repo: https://github.com/christopherpickering/pre-commit-hooks
# rev: 0.0.6
# hooks:
# - id: poetry-to-requirements
# args: [--output=atlas/requirements.txt]
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.3.0
hooks:
- id: pretty-format-toml
args: [--autofix]
- id: pretty-format-ini
args: [--autofix]
- id: pretty-format-yaml
args: [--autofix, --indent, '2']