forked from tursodatabase/libsql-client-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
72 lines (64 loc) · 1.96 KB
/
.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
default_install_hook_types: [pre-commit, pre-push, pre-merge-commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/python/black
rev: 23.3.0
hooks:
- id: black
# tests/dbapi2 are copies from cpython-3.11.3, do not touch
exclude: "^(tests/dbapi2|hrana-test-server)/"
- repo: https://github.com/sqlalchemyorg/zimports/
rev: v0.4.5
hooks:
- id: zimports
exclude: "^(tests/dbapi2|libsql_client/dbapi2/_replace_modules_pythonpath|hrana-test-server)/"
- repo: https://github.com/pycqa/flake8
rev: 5.0.4
hooks:
- id: flake8
additional_dependencies:
- flake8-import-order
- flake8-import-single
- flake8-builtins
- flake8-future-annotations
- flake8-docstrings
- flake8-rst-docstrings
- pygments
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.3.0
hooks:
- id: mypy
exclude: "^(tests|examples|docs|hrana-test-server)/"
- repo: local
hooks:
- id: run-tests
name: run-tests
entry: ./scripts/run-tests.sh
exclude: ^(examples|docs|hrana-test-server)/
language: script
pass_filenames: false
always_run: true
types: [python]
stages: [push, merge-commit]
- repo: local
hooks:
- id: run-examples
name: run-examples
entry: ./scripts/run-examples.sh
exclude: ^(tests|docs|hrana-test-server)/
language: script
pass_filenames: false
always_run: true
types: [python]
stages: [push, merge-commit]