Skip to content

Commit a38020c

Browse files
committed
Update pre-commit hooks and fix linting issues
1 parent 9b2272b commit a38020c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v5.0.0
3+
rev: v6.0.0
44
hooks:
55
- id: check-merge-conflict
66
- id: debug-statements
@@ -14,12 +14,12 @@ repos:
1414
exclude: argtable3
1515
verbose: true
1616
- repo: https://github.com/asottile/reorder_python_imports
17-
rev: v3.14.0
17+
rev: v3.15.0
1818
hooks:
1919
- id: reorder-python-imports
2020
args: [--unclassifiable-application-module=_msprime]
2121
- repo: https://github.com/asottile/pyupgrade
22-
rev: v3.19.1
22+
rev: v3.20.0
2323
hooks:
2424
- id: pyupgrade
2525
args: [--py38-plus]
@@ -29,7 +29,7 @@ repos:
2929
- id: black
3030
language_version: python3
3131
- repo: https://github.com/pycqa/flake8
32-
rev: 7.1.2
32+
rev: 7.3.0
3333
hooks:
3434
- id: flake8
3535
args: [--config=.flake8]

msprime/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def clear_seed_rng():
6969

7070

7171
def get_random_seed() -> int:
72-
global _seed_rng_map
72+
global _seed_rng_map # noqa: F824
7373
pid = os.getpid()
7474
if pid not in _seed_rng_map:
7575
# If we don't provide a seed to Random(), Python will seed either
@@ -87,7 +87,7 @@ def set_seed_rng_seed(seed: int):
8787
8888
DO NOT USE THIS FUNCTION!!!
8989
"""
90-
global _seed_rng_map
90+
global _seed_rng_map # noqa: F824
9191
pid = os.getpid()
9292
_seed_rng_map[pid] = random.Random(seed)
9393

0 commit comments

Comments
 (0)