File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
1
repos :
2
2
- repo : https://github.com/pre-commit/pre-commit-hooks
3
- rev : v4.1 .0
3
+ rev : v4.4 .0
4
4
hooks :
5
5
- id : check-merge-conflict
6
6
- id : debug-statements
7
7
- id : mixed-line-ending
8
8
- id : check-case-conflict
9
9
- id : check-yaml
10
10
- repo : https://github.com/benjeffery/pre-commit-clang-format
11
- rev : c21a74d089aaeb86c2c19df371c7e7bf40c07207
11
+ rev : ' 1.0 '
12
12
hooks :
13
13
- id : clang-format
14
14
exclude : avl
15
15
verbose : true
16
16
- repo : https://github.com/asottile/reorder_python_imports
17
- rev : v3.0.1
17
+ rev : v3.9.0
18
18
hooks :
19
19
- id : reorder-python-imports
20
20
args : [ --unclassifiable-application-module=_tsinfer ]
21
21
- repo : https://github.com/asottile/pyupgrade
22
- rev : v2.31.1
22
+ rev : v3.2.2
23
23
hooks :
24
24
- id : pyupgrade
25
25
args : [ --py3-plus, --py37-plus ]
26
26
- repo : https://github.com/psf/black
27
- rev : 22.3 .0
27
+ rev : 22.10 .0
28
28
hooks :
29
29
- id : black
30
30
language_version : python3
35
35
args : [--skip-errors]
36
36
additional_dependencies : [black==22.3.0]
37
37
language_version : python3
38
- - repo : https://gitlab .com/pycqa/flake8
39
- rev : 3.9.2
38
+ - repo : https://github .com/pycqa/flake8
39
+ rev : 6.0.0
40
40
hooks :
41
41
- id : flake8
42
42
args : [--config=.flake8]
43
- additional_dependencies : ["flake8-bugbear==22.3.23 ", "flake8-builtins==1.5.3 "]
43
+ additional_dependencies : ["flake8-bugbear==22.10.27 ", "flake8-builtins==2.0.1 "]
Original file line number Diff line number Diff line change @@ -403,7 +403,7 @@ def test_infer(self):
403
403
)
404
404
def test_map (self ):
405
405
ratemap = os .path .join (self .tempdir .name , "ratemap.txt" )
406
- with open (ratemap , "wt " ) as map :
406
+ with open (ratemap , "w " ) as map :
407
407
print ("Chromosome Position(bp) Rate(cM/Mb) Map(cM)" , file = map )
408
408
print ("chr1 0 0.1 0" , file = map )
409
409
print ("chr1 1 0.2 0.002" , file = map )
@@ -428,7 +428,7 @@ def test_fails_on_bad_map(self):
428
428
sd = tsinfer .load (self .sample_file )
429
429
last_pos = sd .sites_position [- 1 ]
430
430
assert last_pos > 2
431
- with open (ratemap , "wt " ) as map :
431
+ with open (ratemap , "w " ) as map :
432
432
print ("Chromosome Position(bp) Rate(cM/Mb) Map(cM)" , file = map )
433
433
print ("chr1 0 0.1 0.0" , file = map )
434
434
print (f"chr1 { int (last_pos ) - 1 } 0.2 0.001" , file = map )
You can’t perform that action at this time.
0 commit comments