-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
34 lines (30 loc) · 1.07 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
default_language_version:
python: python3
ci:
autofix_prs: true
repos:
# Run fast code improvement/checks before running PR specific helpers.
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
exclude: .patch$
- id: check-added-large-files
args: ['--maxkb=4096']
- repo: local
hooks:
- id: flake8
name: flake8
entry: flake8
language: system
pass_filenames: false
args: ['--exclude=build/ *_rc.py *_ui.py', '--max-complexity=14', '--max-line-length=140']
# To get the cppcheck hook to work, I needed to copy the std.cfg file to be next to the cppcheck executable.
# Hopefully a future version of cppcheck will not require this.
- id: cppcheck
name: cppcheck
entry: cppcheck
language: system
pass_filenames: false
args: ['.', '-ibuild', '--error-exitcode=-1', '--platform=win64', '--suppress=syntaxError:n_body_simulations/exports/Vector2D.cpp:19']