2
2
- repo : https://github.com/pre-commit/pre-commit-hooks
3
3
rev : v5.0.0
4
4
hooks :
5
- # Files
6
5
- id : check-added-large-files
7
- description : " Prevent large files from being committed."
8
- args : ["--maxkb=10000"]
6
+ description : ' Prevent large files from being committed.'
7
+ args : ['--maxkb=10000']
8
+
9
9
- id : check-case-conflict
10
- description : " Check for files that would conflict in case-insensitive filesystems."
10
+ description : ' Check for files that would conflict in case-insensitive filesystems.'
11
+
11
12
- id : fix-byte-order-marker
12
- description : " Remove utf-8 byte order marker."
13
+ description : ' Remove utf-8 byte order marker.'
14
+
13
15
- id : mixed-line-ending
14
- description : " Replace mixed line ending."
16
+ description : ' Replace mixed line ending.'
15
17
16
- # Links
17
18
- id : destroyed-symlinks
18
- description : " Detect symlinks which are changed to regular files with a content of a path which that symlink was pointing to."
19
+ description : ' Detect symlinks which are changed to regular files with a content of a path which that symlink was pointing to.'
19
20
20
- # File files for parseable syntax: python
21
21
- id : check-ast
22
+ description : ' Check for parseable syntax.'
22
23
23
- # File and line endings
24
24
- id : end-of-file-fixer
25
- description : " Ensure that a file is either empty, or ends with one newline."
25
+ description : ' Ensure that a file is either empty, or ends with one newline.'
26
+
26
27
- id : trailing-whitespace
27
- description : " Trim trailing whitespace."
28
+ description : ' Trim trailing whitespace.'
28
29
29
- # Python
30
30
- id : check-docstring-first
31
- description : " Check a common error of defining a docstring after code."
31
+ description : ' Check a common error of defining a docstring after code.'
32
+
32
33
- id : requirements-txt-fixer
33
- description : " Sort entries in requirements.txt."
34
+ description : ' Sort entries in requirements.txt.'
34
35
35
36
- repo : https://github.com/MarcoGorelli/absolufy-imports
36
37
rev : v0.3.1
37
38
hooks :
38
39
- id : absolufy-imports
39
- description : " Automatically convert relative imports to absolute. (Use `args: [--never]` to revert.)"
40
+ description : ' Automatically convert relative imports to absolute. (Use `args: [--never]` to revert.)'
40
41
41
42
- repo : https://github.com/asottile/pyupgrade
42
43
rev : v3.20.0
43
44
hooks :
44
45
- id : pyupgrade
45
- description : " Automatically upgrade syntax for newer versions."
46
+ description : ' Automatically upgrade syntax for newer versions.'
46
47
args : [--py3-plus, --py36-plus]
47
48
48
49
- repo : https://github.com/pre-commit/pygrep-hooks
49
50
rev : v1.10.0
50
51
hooks :
51
52
- id : python-check-blanket-noqa
52
- description : " Enforce that `noqa` annotations always occur with specific codes. Sample annotations: `# noqa: F401`, `# noqa: F401,W203`."
53
+ description : ' Enforce that `# noqa` annotations always occur with specific codes.'
54
+
53
55
- id : python-check-blanket-type-ignore
54
- description : " Enforce that `# type: ignore` annotations always occur with specific codes. Sample annotations: `# type: ignore[attr-defined]`, `# type: ignore[attr-defined, name-defined]`."
56
+ description : ' Enforce that `# type: ignore` annotations always occur with specific codes.'
57
+
55
58
- id : python-use-type-annotations
56
- description : " Enforce that python3.6+ type annotations are used instead of type comments."
59
+ description : ' Enforce that python3.6+ type annotations are used instead of type comments.'
57
60
58
61
- repo : https://github.com/PyCQA/isort
59
62
rev : 6.0.1
60
63
hooks :
61
64
- id : isort
62
- description : " Sort imports alphabetically, and automatically separated into sections and by type."
65
+ description : ' Sort imports alphabetically, and automatically separated into sections and by type.'
63
66
67
+ - repo : https://github.com/pre-commit/mirrors-eslint
68
+ rev : v9.30.1
69
+ hooks :
70
+ - id : eslint
71
+ description : ' Lint javascript files.'
72
+ files : \.js$
73
+ args : [--max-warnings=0, --fix]
74
+ additional_dependencies :
75
+ [
76
+ ' eslint@9.30.1' ,
77
+ ' @eslint/js@9.30.1' ,
78
+ ' eslint-plugin-import@2.32.0' ,
79
+ ' globals@16.3.0' ,
80
+ ]
64
81
65
82
- repo : https://github.com/djlint/djLint
66
83
rev : v1.36.4
@@ -71,11 +88,11 @@ repos:
71
88
rev : v0.45.0
72
89
hooks :
73
90
- id : markdownlint
74
- description : " Lint markdown files."
75
- args : [" --disable=line-length" ]
91
+ description : ' Lint markdown files.'
92
+ args : [' --disable=line-length' ]
76
93
77
94
- repo : https://github.com/astral-sh/ruff-pre-commit
78
- rev : v0.12.1
95
+ rev : v0.12.2
79
96
hooks :
80
97
- id : ruff-check
81
98
- id : ruff-format
@@ -97,17 +114,19 @@ repos:
97
114
additional_dependencies :
98
115
[
99
116
click>=8.0.0,
100
- " fastapi[standard]>=0.109.1" ,
117
+ ' fastapi[standard]>=0.109.1' ,
118
+ httpx,
119
+ pathspec>=0.12.1,
101
120
pydantic,
102
121
pytest-asyncio,
103
122
pytest-mock,
104
123
python-dotenv,
105
124
slowapi,
106
125
starlette>=0.40.0,
107
- tiktoken,
108
- pathspec,
126
+ tiktoken>=0.7.0,
109
127
uvicorn>=0.11.7,
110
128
]
129
+
111
130
- id : pylint
112
131
name : pylint for tests
113
132
files : ^tests/
@@ -116,15 +135,16 @@ repos:
116
135
additional_dependencies :
117
136
[
118
137
click>=8.0.0,
119
- " fastapi[standard]>=0.109.1" ,
138
+ ' fastapi[standard]>=0.109.1' ,
139
+ httpx,
140
+ pathspec>=0.12.1,
120
141
pydantic,
121
142
pytest-asyncio,
122
143
pytest-mock,
123
144
python-dotenv,
124
145
slowapi,
125
146
starlette>=0.40.0,
126
- tiktoken,
127
- pathspec,
147
+ tiktoken>=0.7.0,
128
148
uvicorn>=0.11.7,
129
149
]
130
150
0 commit comments