22 - repo : https://github.com/pre-commit/pre-commit-hooks
33 rev : v5.0.0
44 hooks :
5- # Files
65 - 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+
99 - 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+
1112 - id : fix-byte-order-marker
12- description : " Remove utf-8 byte order marker."
13+ description : ' Remove utf-8 byte order marker.'
14+
1315 - id : mixed-line-ending
14- description : " Replace mixed line ending."
16+ description : ' Replace mixed line ending.'
1517
16- # Links
1718 - 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.'
1920
20- # File files for parseable syntax: python
2121 - id : check-ast
22+ description : ' Check for parseable syntax.'
2223
23- # File and line endings
2424 - 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+
2627 - id : trailing-whitespace
27- description : " Trim trailing whitespace."
28+ description : ' Trim trailing whitespace.'
2829
29- # Python
3030 - 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+
3233 - id : requirements-txt-fixer
33- description : " Sort entries in requirements.txt."
34+ description : ' Sort entries in requirements.txt.'
3435
3536 - repo : https://github.com/MarcoGorelli/absolufy-imports
3637 rev : v0.3.1
3738 hooks :
3839 - 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.)'
4041
4142 - repo : https://github.com/asottile/pyupgrade
4243 rev : v3.20.0
4344 hooks :
4445 - id : pyupgrade
45- description : " Automatically upgrade syntax for newer versions."
46+ description : ' Automatically upgrade syntax for newer versions.'
4647 args : [--py3-plus, --py36-plus]
4748
4849 - repo : https://github.com/pre-commit/pygrep-hooks
4950 rev : v1.10.0
5051 hooks :
5152 - 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+
5355 - 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+
5558 - 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.'
5760
5861 - repo : https://github.com/PyCQA/isort
5962 rev : 6.0.1
6063 hooks :
6164 - 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.'
6366
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+ ]
6481
6582 - repo : https://github.com/djlint/djLint
6683 rev : v1.36.4
@@ -71,11 +88,11 @@ repos:
7188 rev : v0.45.0
7289 hooks :
7390 - id : markdownlint
74- description : " Lint markdown files."
75- args : [" --disable=line-length" ]
91+ description : ' Lint markdown files.'
92+ args : [' --disable=line-length' ]
7693
7794 - repo : https://github.com/astral-sh/ruff-pre-commit
78- rev : v0.12.1
95+ rev : v0.12.2
7996 hooks :
8097 - id : ruff-check
8198 - id : ruff-format
@@ -97,17 +114,19 @@ repos:
97114 additional_dependencies :
98115 [
99116 click>=8.0.0,
100- " fastapi[standard]>=0.109.1" ,
117+ ' fastapi[standard]>=0.109.1' ,
118+ httpx,
119+ pathspec>=0.12.1,
101120 pydantic,
102121 pytest-asyncio,
103122 pytest-mock,
104123 python-dotenv,
105124 slowapi,
106125 starlette>=0.40.0,
107- tiktoken,
108- pathspec,
126+ tiktoken>=0.7.0,
109127 uvicorn>=0.11.7,
110128 ]
129+
111130 - id : pylint
112131 name : pylint for tests
113132 files : ^tests/
@@ -116,15 +135,16 @@ repos:
116135 additional_dependencies :
117136 [
118137 click>=8.0.0,
119- " fastapi[standard]>=0.109.1" ,
138+ ' fastapi[standard]>=0.109.1' ,
139+ httpx,
140+ pathspec>=0.12.1,
120141 pydantic,
121142 pytest-asyncio,
122143 pytest-mock,
123144 python-dotenv,
124145 slowapi,
125146 starlette>=0.40.0,
126- tiktoken,
127- pathspec,
147+ tiktoken>=0.7.0,
128148 uvicorn>=0.11.7,
129149 ]
130150
0 commit comments