Skip to content

Commit b6a55e9

Browse files
Create .pre-commit-config.yaml for linting and type checks
Add pre-commit configuration for code quality checks.
1 parent df67121 commit b6a55e9

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.pre-commit-config.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# .pre-commit-config.yaml
2+
3+
repos:
4+
- repo: https://github.com/astral-sh/ruff-pre-commit
5+
rev: v0.14.8
6+
hooks:
7+
- id: ruff
8+
args: ["backend/"]
9+
always_run: true
10+
11+
- repo: local
12+
hooks:
13+
- id: mypy-check
14+
name: MyPy Type Checking
15+
entry: bash -c 'cd backend && mypy .'
16+
language: system
17+
types: [python]
18+
pass_filenames: false
19+
always_run: true
20+
21+
- id: pylint-check
22+
name: PyLint Code Quality
23+
entry: bash -c 'cd backend && pylint .'
24+
language: system
25+
types: [python]
26+
pass_filenames: false
27+
always_run: true
28+
29+
- repo: https://github.com/pre-commit/pre-commit-hooks
30+
rev: v6.0.0
31+
hooks:
32+
- id: check-toml
33+
- id: debug-statements
34+
- id: end-of-file-fixer
35+
- id: check-yaml
36+
args: [--allow-multiple-documents]

0 commit comments

Comments
 (0)