|
1 | | -ci: |
2 | | - autofix_prs: false |
3 | 1 | repos: |
4 | | -- repo: https://github.com/psf/black |
5 | | - rev: 22.3.0 |
| 2 | + - repo: https://github.com/myint/docformatter |
| 3 | + rev: v1.4 |
6 | 4 | hooks: |
7 | | - - id: black |
8 | | -- repo: https://github.com/myint/autoflake |
| 5 | + - id: docformatter |
| 6 | + args: [--in-place, --pre-summary-newline, --make-summary-multi] |
| 7 | + - repo: https://github.com/myint/autoflake |
9 | 8 | rev: v1.4 |
10 | 9 | hooks: |
11 | 10 | - id: autoflake |
12 | 11 | args: ['--in-place', '--remove-all-unused-imports', '--remove-unused-variable'] |
13 | 12 | exclude: ".*(.fits|.fts|.fit|.txt|tca.*|extern.*|.rst|.md|__init__.py|docs/conf.py)$" |
14 | | -- repo: https://github.com/PyCQA/isort |
15 | | - rev: 5.10.1 |
16 | | - hooks: |
| 13 | + - repo: https://github.com/psf/black |
| 14 | + rev: 22.3.0 |
| 15 | + hooks: |
| 16 | + - id: black |
| 17 | + exclude: ".*(.fits|.fts|.fit|.txt|.csv)$" |
| 18 | + - repo: https://github.com/PyCQA/isort |
| 19 | + rev: 5.10.1 |
| 20 | + hooks: |
17 | 21 | - id: isort |
18 | | - args: ['--sp','setup.cfg'] |
19 | | - exclude: ".*(.fits|.fts|.fit|.txt|tca.*|extern.*|.rst|.md|docs/conf.py)$" |
20 | | -- repo: https://github.com/pre-commit/pre-commit-hooks |
21 | | - rev: v4.2.0 |
22 | | - hooks: |
| 22 | + exclude: ".*(.fits|.fts|.fit|.txt|.csv)$" |
| 23 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 24 | + rev: v4.2.0 |
| 25 | + hooks: |
23 | 26 | - id: check-ast |
24 | 27 | - id: check-case-conflict |
25 | 28 | - id: trailing-whitespace |
26 | | - exclude: ".*(.fits|.fts|.fit|.txt)$" |
| 29 | + exclude: ".*(.fits|.fts|.fit|.txt|.csv)$" |
| 30 | + - id: mixed-line-ending |
| 31 | + exclude: ".*(.fits|.fts|.fit|.txt|.csv)$" |
| 32 | + - id: end-of-file-fixer |
| 33 | + exclude: ".*(.fits|.fts|.fit|.txt|.csv)$" |
27 | 34 | - id: check-yaml |
28 | 35 | - id: debug-statements |
29 | | - - id: check-added-large-files |
30 | | - - id: end-of-file-fixer |
31 | | - exclude: ".*(.fits|.fts|.fit|.txt|tca.*)$" |
32 | | - - id: mixed-line-ending |
33 | | - exclude: ".*(.fits|.fts|.fit|.txt|tca.*)$" |
| 36 | + |
| 37 | +ci: |
| 38 | + autofix_prs: false |
0 commit comments