-
Notifications
You must be signed in to change notification settings - Fork 17
/
.pre-commit-config.yaml
49 lines (49 loc) · 1.38 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
43
44
45
46
47
48
49
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: local
hooks:
- id: check-for-binary
name: check for binary/ipynb files
entry: .github/isbin.sh
language: script
pass_filenames: true
- id: autoflake
name: autoflake
entry: autoflake
language: python
language_version: python3
types: [python]
args: ['-i', '--remove-all-unused-imports', '--ignore-init-module-imports']
- id: isort
name: isort (python)
entry: isort
language: python
language_version: python3
types: [python]
- id: isort
name: isort (cython)
entry: isort
language: python
language_version: python3
types: [cython]
- id: black
name: black
entry: black
description: 'Black: The uncompromising Python code formatter'
language: python
language_version: python3
types: [python]
- id: pylint
name: pylint
entry: pylint
language: python
language_version: python3
types: [python]
exclude: ^(scico/test/|examples|docs)
args: ['--score=n', '--disable=all', '--enable=missing-docstring,broad-exception-raised']