Skip to content

Commit ca43394

Browse files
committed
Update pre-commit
1 parent c78ffbc commit ca43394

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 6 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: v4.6.0
3+
rev: v5.0.0
44
hooks:
55
- id: check-merge-conflict
66
- id: debug-statements
@@ -18,29 +18,29 @@ repos:
1818
exclude: dev-tools|examples
1919
verbose: true
2020
- repo: https://github.com/asottile/reorder_python_imports
21-
rev: v3.12.0
21+
rev: v3.14.0
2222
hooks:
2323
- id: reorder-python-imports
2424
args: [--application-directories=python,
2525
--unclassifiable-application-module=_tskit]
2626
- repo: https://github.com/asottile/pyupgrade
27-
rev: v3.15.2
27+
rev: v3.19.1
2828
hooks:
2929
- id: pyupgrade
3030
args: [--py3-plus, --py38-plus]
3131
- repo: https://github.com/psf/black
32-
rev: 24.4.2
32+
rev: 25.1.0
3333
hooks:
3434
- id: black
3535
language_version: python3
3636
- repo: https://github.com/pycqa/flake8
37-
rev: 7.0.0
37+
rev: 7.1.2
3838
hooks:
3939
- id: flake8
4040
args: [--config=python/.flake8]
4141
additional_dependencies: ["flake8-bugbear==23.9.16", "flake8-builtins==2.1.0"]
4242
- repo: https://github.com/asottile/blacken-docs
43-
rev: 1.16.0
43+
rev: 1.19.1
4444
hooks:
4545
- id: blacken-docs
4646
args: [--skip-errors]

python/tests/test_genotypes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2016,8 +2016,8 @@ def test_reference_sequence(self, ts):
20162016
),
20172017
# Case 10: Lists contain unicode characters.
20182018
(
2019-
["\u1F1E8", "\u1F1EC"],
2020-
["\u1F1EC", "\u1F1E8", "\u1F1E6", "\u1F1F3"],
2019+
["\u1f1e8", "\u1f1eC"],
2020+
["\u1f1eC", "\u1f1e8", "\u1f1e6", "\u1f1f3"],
20212021
np.array([1, 0], dtype="uint32"),
20222022
),
20232023
],

python/tskit/drawing.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
@dataclass
5959
class Offsets:
6060
"Used when x_lim set, and displayed ts has been cut down by keep_intervals"
61+
6162
tree: int = 0
6263
site: int = 0
6364
mutation: int = 0
@@ -66,6 +67,7 @@ class Offsets:
6667
@dataclass(frozen=True)
6768
class Timescaling:
6869
"Class used to transform the time axis"
70+
6971
max_time: float
7072
min_time: float
7173
plot_min: float

0 commit comments

Comments
 (0)