-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
37 lines (37 loc) · 1.16 KB
/
.pre-commit-config.yaml
File metadata and controls
37 lines (37 loc) · 1.16 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
exclude_types: [csv] # exclude golden files
- id: trailing-whitespace
# - repo: https://github.com/psf/black
# rev: 22.10.0
# hooks:
# - id: black
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: '0.36.0'
hooks:
- id: check-jsonschema
# not necessary, but can be useful for `pre-commit run` if you have other `check-jsonschema` hooks
alias: check-jsonschema-meta
name: Validate meta files
args: ["--schemafile", "schemas/my_schema.json"]
types_or: [] # reset to default
files: ^data/.*\.meta$
- repo: https://github.com/pycqa/flake8
rev: '7.3.0' # pick a git hash / tag to point to
hooks:
- id: flake8
- repo: https://github.com/hhatto/autopep8
rev: 'v2.3.2' # select the tag or revision you want, or run `pre-commit autoupdate`
hooks:
- id: autopep8
# - repo: local
# hooks:
# - id: Locat Test Script
# name: Local Test Script
# entry: test.sh
# language: script
# pass_filenames: false