File tree Expand file tree Collapse file tree 3 files changed +45
-2
lines changed Expand file tree Collapse file tree 3 files changed +45
-2
lines changed Original file line number Diff line number Diff line change
1
+ # pip install datajoint[test]
2
+ # pre-commit install
3
+ # pre-commit run --all-files
4
+ # pre-commit autoupdate
5
+ # SKIP=flake8 git commit -m "foo"
6
+
7
+ # See https://pre-commit.com for more information
8
+ # See https://pre-commit.com/hooks.html for more hooks
9
+ repos :
10
+ - repo : https://github.com/pre-commit/pre-commit-hooks
11
+ rev : v5.0.0
12
+ hooks :
13
+ - id : check-yaml
14
+ - id : check-json
15
+ - id : check-toml
16
+ - id : trailing-whitespace
17
+ - id : end-of-file-fixer
18
+ - id : check-added-large-files
19
+ - repo : https://github.com/codespell-project/codespell
20
+ rev : v2.4.1
21
+ hooks :
22
+ - id : codespell
23
+ - repo : https://github.com/psf/black
24
+ rev : 24.2.0
25
+ hooks :
26
+ - id : black
27
+ args :
28
+ - --required-version='24.2.0'
29
+ - -check
30
+ - -v=datajoint,tests
31
+ - --diff
32
+ - repo : https://github.com/PyCQA/flake8
33
+ rev : 7.1.2
34
+ hooks :
35
+ - id : flake8
36
+ args :
37
+ - --ignore=E203,E722,W503 datajoint
38
+ - --count
39
+ - --max-complexity=62
40
+ - --max-line-length=127
41
+ - --statistics
42
+ - --per-file-ignores='datajoint/diagram.py:C901'
Original file line number Diff line number Diff line change 17
17
"[dockercompose]" : {
18
18
"editor.defaultFormatter" : " disable"
19
19
},
20
- "files.autoSave" : " off"
21
- }
20
+ // "files.autoSave": "off"
21
+ }
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ classifiers = [
44
44
45
45
[project .optional-dependencies ]
46
46
test = [
47
+ " pre-commit" ,
47
48
" pytest" ,
48
49
" pytest-cov" ,
49
50
" black==24.2.0" ,
You can’t perform that action at this time.
0 commit comments