-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path.pre-commit-config.yaml
31 lines (29 loc) · 1.02 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0 # DO NOT UPDATE: last version to be compatible with Python 3.6
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: check-xml
- id: check-yaml
# FOMs have a .json extension but they are parsed as YAML
types_or: [yaml, json]
- id: debug-statements
- id: destroyed-symlinks
# - id: end-of-file-fixer
- id: fix-byte-order-marker
- id: fix-encoding-pragma
#- id: trailing-whitespace # not ready yet
- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
hooks:
- id: flake8
name: flake8 under python3
language_version: python3
exclude: ^(doc/source|capsul)/sphinxext/
ci: # configuration for https://pre-commit.ci/
autoupdate_schedule: quarterly # prevent too frequent PRs