-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
69 lines (62 loc) · 1.87 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
# pre-commit configuration
# vim: set ts=2 sts=2 sw=2 et ci nu ft=yaml:
---
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.2.2
hooks:
# Run the linter.
- id: ruff
args: [ --fix ]
# Run the formatter.
- id: ruff-format
- repo: https://github.com/pycqa/pydocstyle
rev: 6.3.0 # pick a git hash / tag to point to
hooks:
- id: pydocstyle
- repo: https://github.com/python-poetry/poetry
rev: '1.7.0' # add version here
hooks:
- id: poetry-check
- id: poetry-lock
- id: poetry-export
args: ["-f", "requirements.txt", "-o", "requirements.txt", "--all-extras"]
- repo: https://github.com/thibaudcolas/curlylint
rev: "v0.13.1" # select a tag / sha to point at
hooks:
- id: curlylint
files: \.j2
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v4.0.0-alpha.8" # Use the sha or tag you want to point at
hooks:
- id: prettier
types_or: [ css, javascript, scss]
- repo: https://github.com/Lucas-C/pre-commit-hooks-lxml
rev: v1.1.0
hooks:
- id: forbid-html-img-without-alt-text
- id: forbid-non-std-html-attributes
- id: detect-missing-css-classes
args:
- --css-files-dir
- css
- --html-files-dir
- templates
- id: html-tags-blacklist
- id: html-attributes-blacklist
- repo: https://github.com/pre-commit/mirrors-csslint
rev: 'v1.0.5' # Use the sha / tag you want to point at
hooks:
- id: csslint
args:
- --ignore=import
files: \.css$