forked from neo4j/neo4j-graphrag-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
34 lines (34 loc) · 911 Bytes
/
.pre-commit-config.yaml
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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: local
hooks:
- id: ruff-lint-isort
name: Ruff Lint Sort Imports
entry: poetry run ruff check .
language: system
types: [ python ]
stages: [ commit, push ]
- id: ruff-lint
name: Ruff Lint Check
entry: poetry run ruff format --check .
language: system
types: [ python ]
stages: [ commit, push ]
- id: mypy
name: Mypy Type Check
entry: mypy .
language: system
types: [ python ]
stages: [ commit, push ]
pass_filenames: false
args: [
--strict,
--ignore-missing-imports,
--allow-untyped-calls,
--allow-subclassing-any,
--exclude='./docs/'
]