-
Notifications
You must be signed in to change notification settings - Fork 7
/
.pre-commit-config.yaml
39 lines (35 loc) · 1.03 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/python/black
rev: 22.8.0
hooks:
- id: black
- repo: https://github.com/sqlalchemyorg/zimports
rev: v0.6.0
hooks:
- id: zimports
- repo: https://github.com/pycqa/flake8
rev: 5.0.0
hooks:
- id: flake8
additional_dependencies:
- flake8-import-order
- flake8-import-single==0.1.5
- flake8-builtins
- flake8-future-annotations>=0.0.5
- flake8-docstrings>=1.6.0
- flake8-rst-docstrings
# flake8-rst-docstrings dependency, leaving it here
# in case it requires a version pin
- pydocstyle
- pygments
- repo: local
hooks:
- id: pytest-check
name: pytest-check
entry: poetry run python hrana-test-server/server_v2.py pytest --verbose
language: system
pass_filenames: false
always_run: true
types: [python]