Skip to content

Commit 6339bd3

Browse files
committed
STY: Ruff + add auto fix to precommit check
1 parent 82702f4 commit 6339bd3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ repos:
1212
- id: check-toml
1313
- id: check-added-large-files
1414
- repo: https://github.com/astral-sh/ruff-pre-commit
15-
rev: v0.2.0
15+
rev: v0.6.5
1616
hooks:
1717
- id: ruff
18+
args: [ --fix ]
1819
- id: ruff-format

nibabies/utils/bids.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@
88
import os
99
import sys
1010
import typing as ty
11-
from pathlib import Path
1211
import warnings
12+
from pathlib import Path
1313

1414
import pandas as pd
1515

16-
1716
SUPPORTED_AGE_UNITS = (
1817
'weeks',
1918
'months',

0 commit comments

Comments
 (0)