File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 9
9
jobs :
10
10
pre-commit :
11
11
name : Lint
12
- uses : tskit-dev/.github/.github/workflows/lint.yml@v1
12
+ uses : tskit-dev/.github/.github/workflows/lint.yml@v2
13
13
14
14
test :
15
15
name : Python
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 : v5 .0.0
3
+ rev : v6 .0.0
4
4
hooks :
5
5
- id : check-merge-conflict
6
6
- id : debug-statements
@@ -14,13 +14,13 @@ repos:
14
14
exclude : dev-tools|examples
15
15
verbose : true
16
16
- repo : https://github.com/asottile/reorder_python_imports
17
- rev : v3.14 .0
17
+ rev : v3.15 .0
18
18
hooks :
19
19
- id : reorder-python-imports
20
20
args : [--application-directories=python,
21
21
--unclassifiable-application-module=_tskit]
22
22
- repo : https://github.com/asottile/pyupgrade
23
- rev : v3.19.1
23
+ rev : v3.20.0
24
24
hooks :
25
25
- id : pyupgrade
26
26
args : [--py3-plus, --py38-plus]
@@ -30,13 +30,13 @@ repos:
30
30
- id : black
31
31
language_version : python3
32
32
- repo : https://github.com/pycqa/flake8
33
- rev : 7.1.2
33
+ rev : 7.3.0
34
34
hooks :
35
35
- id : flake8
36
36
args : [--config=python/.flake8]
37
37
additional_dependencies : ["flake8-bugbear==23.9.16", "flake8-builtins==2.1.0"]
38
38
- repo : https://github.com/asottile/blacken-docs
39
- rev : 1.19.1
39
+ rev : 1.20.0
40
40
hooks :
41
41
- id : blacken-docs
42
42
args : [--skip-errors]
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ def cached_np(func):
53
53
cache = {}
54
54
55
55
def f (* args ):
56
- nonlocal cache
56
+ nonlocal cache # noqa: F824
57
57
key = tuple (x .tobytes () for x in args )
58
58
if key not in cache :
59
59
cache [key ] = func (* args )
You can’t perform that action at this time.
0 commit comments