forked from LibraryOfCongress/concordia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
85 lines (85 loc) · 2.84 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
exclude: '.*/vendor/.*'
repos:
- repo: https://github.com/adamchainz/django-upgrade
rev: 1.5.0
hooks:
- id: django-upgrade
args: [--target-version, '3.2']
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.8.0
hooks:
- id: isort
- repo: https://github.com/rtts/djhtml
rev: 'v1.5.1'
hooks:
- id: djhtml
- repo: https://github.com/ambv/black
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-added-large-files
args: ['--maxkb=128']
- id: check-ast
- id: check-byte-order-marker
- id: check-case-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-json
exclude: fixtures/.*
- id: check-merge-conflict
- id: check-symlinks
- id: check-xml
- id: check-yaml
# CloudFormation templates rely on macros which will fail a simple
# YAML load, which is why we have cfn-python-lint enabled below:
exclude: cloudformation/.*
- id: debug-statements
- id: detect-aws-credentials
args: ['--allow-missing-credentials']
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
args: ['--fix=lf']
- id: pretty-format-json
args: ['--autofix', '--no-sort-keys', '--indent=4']
exclude: fixtures/.*
- id: trailing-whitespace
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.3.0
hooks:
- id: prettier
files: \.(css|less|scss|ts|tsx|graphql|gql|json|js|jsx|md|yaml|yml)$
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v7.27.0
hooks:
- id: eslint
additional_dependencies:
- eslint-plugin-prettier@^3.3.1
- eslint-plugin-unicorn@^26.0.0
- eslint@^7.17.0
- prettier@^2.2.1
- repo: https://github.com/awebdeveloper/pre-commit-stylelint
rev: 0.0.2
hooks:
- id: stylelint
additional_dependencies:
- 'stylelint@^13.8.0'
- 'stylelint-config-prettier@^8.0.2'
- 'stylelint-config-recommended@^3.0.0'
- 'stylelint-value-no-unknown-custom-properties@^3.0.0'
- repo: https://github.com/aws-cloudformation/cfn-python-lint
rev: v0.61.0
hooks:
- id: cfn-python-lint
files: cloudformation/.*\.(json|yml|yaml)$
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
- repo: https://github.com/PyCQA/bandit
rev: 1.7.0
hooks:
- id: bandit