-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy path.pre-commit-config.yaml
65 lines (65 loc) · 2.11 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
# File format: https://pre-commit.com/#plugins
# Supported hooks: https://pre-commit.com/hooks.html
# Running "make format" fixes most issues for you
repos:
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
language_version: python3
- repo: https://github.com/PyCQA/bandit
rev: 1.7.5
hooks:
- id: bandit
args: [--quiet]
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear
- flake8-builtins
- flake8-comprehensions
- flake8-docstrings
- flake8-implicit-str-concat
- flake8-print
- flake8-rst
- flake8-string-format
- flake8-blind-except
- flake8-debugger
- flake8-raise
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-json
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: debug-statements
- id: detect-private-key
- id: end-of-file-fixer
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: pretty-format-json
args: [--autofix, --indent=2, --no-sort-keys, --no-ensure-ascii]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.4.1
hooks:
- id: mypy
language_version: python3
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
args: ['--filter-files']
- repo: https://github.com/Amsterdam/schema-tools
rev: "v5.14.2"
hooks:
- id: validate-schema
args: ['https://schemas.data.amsterdam.nl/[email protected]', "--extra_meta_schema_url", "https://schemas.data.amsterdam.nl/[email protected]"]
files: '^datasets/.*\.json$'
verbose: true # so we can see against which metaschema it is valid
exclude: "^schema@.+" # exclude meta schemas
- id: validate-publishers
args: ['https://schemas.data.amsterdam.nl/[email protected]', '--schema-url', './publishers']
verbose: true # so we can see against which metaschema it is valid