@@ -37,58 +37,22 @@ repos:
3737 - id : conventional-pre-commit
3838 stages : [commit-msg]
3939
40- - repo : https://github.com/charliermarsh /ruff-pre-commit
41- rev : " v0.0.289 "
40+ - repo : https://github.com/astral-sh /ruff-pre-commit
41+ rev : " v0.4.7 "
4242 hooks :
4343 - id : ruff
44- name : Code linting
44+ name : Python format
4545 files : ^api/.*\.py$
4646 args :
4747 - --fix
4848
49- - repo : https://github.com/ambv/black
50- rev : 23.9.1
49+ - repo : https://github.com/biomejs/pre-commit
50+ rev : v0.2.0
5151 hooks :
52- - id : black
53- name : Code formatting
54- language_version : python3.10
55- args : [--config=api/pyproject.toml]
56- files : ^api/src/.*\.py$
57-
58- - repo : https://github.com/econchick/interrogate
59- rev : 1.5.0
60- hooks :
61- - id : interrogate
62- language_version : python3.10
63- types : [python]
64- args : [--config=api/pyproject.toml]
65- files : ^api/.*\.py$
52+ - id : biome-check
53+ additional_dependencies : [ "@biomejs/biome@1.8.0" ]
54+ args : ["--config-path", "web"]
6655
67- - repo : https://github.com/pre-commit/mirrors-prettier
68- rev : v3.0.3
69- hooks :
70- - id : prettier
71- files : ^web/src/.*\.(ts|tsx|js|css|html|json)$
72- args :
73- ["--config=web/.prettierrc.js", "--ignore-path=web/.prettierignore"]
74-
75- - repo : https://github.com/pre-commit/mirrors-eslint
76- rev : " v8.49.0"
77- hooks :
78- - id : eslint
79- additional_dependencies :
80- - eslint
81- - typescript
82- - " @typescript-eslint/parser"
83- - " @typescript-eslint/eslint-plugin"
84- - eslint-config-prettier # turns off all rules that might conflict with prettier
85- - eslint-plugin-jsx-a11y # checks accessibility rules on jsx elements
86- - eslint-plugin-prettier # runs prettier as an eslint rule
87- - eslint-plugin-react # react specific linting rules
88- - eslint-plugin-react-hooks # enforces the rules of hooks
89- files : ^web/src/.*\.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx
90- types : [file]
91- args : ["--config=web/.eslintrc.json", "--ignore-path=web/.eslintignore"]
9256
9357 - repo : https://github.com/pre-commit/mirrors-mypy
9458 rev : v1.5.1
0 commit comments