Skip to content

Commit 8efea4b

Browse files
committed
CHORE: Update ruff, ignore certain rules
1 parent 2355035 commit 8efea4b

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,5 +119,5 @@ jobs:
119119
runs-on: ubuntu-latest
120120
steps:
121121
- uses: actions/checkout@v4
122-
- run: pipx run ruff smriprep
122+
- run: pipx run ruff check smriprep
123123
- run: pipx run ruff format --diff smriprep

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repos:
1111
- id: check-toml
1212
- id: check-json
1313
- repo: https://github.com/astral-sh/ruff-pre-commit
14-
rev: v0.1.6
14+
rev: v0.2.0
1515
hooks:
1616
- id: ruff
1717
- id: ruff-format

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,11 @@ extend-select = [
163163
"PT",
164164
"Q",
165165
]
166+
extend-ignore = [
167+
"S311", # We are not using random for cryptographic purposes
168+
"ISC001",
169+
"S603",
170+
]
166171

167172
[tool.ruff.lint.flake8-quotes]
168173
inline-quotes = "single"

0 commit comments

Comments
 (0)