forked from alan-turing-institute/sqlsynthgen
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
80 lines (80 loc) · 2.03 KB
/
.pre-commit-config.yaml
File metadata and controls
80 lines (80 loc) · 2.03 KB
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
73
74
75
76
77
78
79
80
---
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
exclude: docs/(source|build/html)/_static/
- id: end-of-file-fixer
exclude: docs/source/_static/
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/markdownlint/markdownlint
# Note the "v"
rev: v0.12.0
hooks:
- id: markdownlint
args: [--style=mdl_style.rb]
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.11.0.1
hooks:
- id: shellcheck
- repo: local
hooks:
# Ensure that the config html pages are current
- id: config_schema
name: Config Schema Docs
entry: >
poetry run
generate-schema-doc
--config-file .jsfh.yaml
datafaker/json_schemas/config_schema.json
docs/source/_static/
language: system
pass_filenames: false
- id: black
name: Black
entry: poetry run black
language: system
types: ['python']
exclude: (?x)(
tests/examples
)
- id: isort
name: isort
entry: poetry run isort
language: system
types: ['python']
exclude: (?x)(
tests/examples|
examples
)
- id: pylint
name: Pylint
entry: poetry run pylint
language: system
types: ['python']
exclude: (?x)(
examples/
)
- id: pydocstyle
name: pydocstyle
entry: poetry run pydocstyle
language: system
types: ['python']
exclude: (?x)(
docs/|
tests/|
examples/
)
- id: mypy
name: mypy
entry: poetry run mypy --follow-imports=silent
language: system
exclude: (?x)(
tests/examples|
examples
)
types: ['python']