forked from CybercentreCanada/clue
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
36 lines (36 loc) · 1022 Bytes
/
Copy path.pre-commit-config.yaml
File metadata and controls
36 lines (36 loc) · 1022 Bytes
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
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.8.0
hooks:
# Run the linter.
- id: ruff
args: [--fix, --output-format=concise]
# Run the formatter.
- id: ruff-format
- repo: local
hooks:
- id: poetry-check-api
name: poetry-check-api
entry: api/build_scripts/check_poetry.sh
language: script
stages: [pre-commit]
files: ^api/.*\.(toml|lock)
- id: lint-staged
name: lint-staged
entry: ui/build_scripts/lint_staged.sh
language: script
stages: [pre-commit]
files: ^ui/.*
- id: bad-ui-imports
name: bad-ui-imports
entry: ui/build_scripts/find_bad_imports.py
language: python
stages: [pre-commit]
files: ^ui/.*
- id: check-translation
name: check-translation
entry: ui/build_scripts/check_translation.py
language: python
stages: [pre-commit]
files: ^ui/.*