forked from niaid/imaris_extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
29 lines (26 loc) · 951 Bytes
/
.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
# .pre-commit-config.yaml
# for details see https://pre-commit.com
# for list of available hooks see https://pre-commit.com/hooks.html
#
# Preclude commits that do not conform to various criteria.
fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks: # check for large files, aws credentials and private key files
- id: check-added-large-files
args: ['--maxkb=200']
- id: detect-aws-credentials
args: ['--allow-missing-credentials'] # allow hook to pass when no credentials are detected
- id: detect-private-key
- id: check-json
- id: check-yaml
- repo: https://github.com/psf/black
rev: 22.12.0
hooks: # check conformance to black formatting
- id: black
args: ['--check'] # if run without arguments, will fail and will format the files
- repo: https://github.com/pycqa/flake8
rev: 5.0.4
hooks: # check conformance to PEP8, flake8 formatting
- id: flake8