-
Notifications
You must be signed in to change notification settings - Fork 124
/
.pre-commit-config.yaml
36 lines (34 loc) · 1.01 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
35
36
exclude: '^$|settings|scripts|docs'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
exclude: |
(?x)^(
.*README.md|
.*\.f90
)$
# let flake8 deal with py => dont treat docstrings.
exclude_types: ['html','python']
- id: check-added-large-files
- id: check-ast
- id: check-json
- id: check-merge-conflict
- id: check-xml
- id: check-yaml
- id: debug-statements
exclude: 'dapper/tools/liveplotting.py'
- id: detect-aws-credentials # Notifies if you DONT have credentials
args:
- --allow-missing-credentials
- id: detect-private-key # Notifies if you have private
- id: end-of-file-fixer
- id: requirements-txt-fixer
- id: mixed-line-ending
args: ['--fix=no']
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.0
hooks:
- id: ruff
- id: ruff-format