-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
38 lines (35 loc) · 1.29 KB
/
.pre-commit-config.yaml
File metadata and controls
38 lines (35 loc) · 1.29 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0 # DO NOT UPDATE: last version to be compatible with Python 3.6
# rev: v6.0.0 # OK! we do not update !
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 # to remove from rev > v5.0.0
#- id: trailing-whitespace # not ready yet
- repo: https://github.com/PyCQA/flake8
rev: 7.3.0
hooks:
- id: flake8
name: flake8 under python3
language_version: python3
exclude: ^(doc/source|capsul)/sphinxext/
# - repo: https://github.com/asottile/pyupgrade # to add when rev > v5.0.0
# rev: v3.20.0
# hooks:
# - id: pyupgrade
# args: ["--py39-plus"] # Ensures compatibility with Python 3.9+
ci: # configuration for https://pre-commit.ci/
autoupdate_schedule: quarterly # prevent too frequent PRs