forked from lmfit/lmfit-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
42 lines (37 loc) · 1.08 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
37
38
39
40
41
42
exclude: 'versioneer.py|lmfit/_version|doc/conf.py'
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v1.24.0
hooks:
- id: pyupgrade
# for now don't force to change from %-operator to {}
args: [--keep-percent-format]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-ast
- id: check-builtin-literals
- id: check-merge-conflict
- id: debug-statements
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- id: requirements-txt-fixer
- repo: https://gitlab.com/pycqa/flake8
rev: 3.7.8
hooks:
- id: flake8
exclude: 'lmfit/__init__.py|lmfit/ui/__init__.py'
args: ['--ignore=E121,E123,E126,E226,W503,W504,E501,E731']
- repo: local
hooks:
- id: rstcheck
name: rstcheck
entry: rstcheck
files: '.rst'
language: python
additional_dependencies: [rstcheck, sphinx]
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.4.1
hooks:
- id: rst-backticks