Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#184)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Philipp A. <flying-sheep@web.de>
  • Loading branch information
pre-commit-ci[bot] and flying-sheep authored Aug 22, 2024
1 parent 6d27080 commit a7729d8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ repos:
hooks:
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.7
rev: v0.6.1
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
3 changes: 2 additions & 1 deletion demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"source": [
"import anndata2ri\n",
"\n",
"\n",
"anndata2ri.activate()\n",
"%load_ext rpy2.ipython"
]
Expand Down Expand Up @@ -131,4 +132,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
}
}
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ ignore = [
]
allowed-confusables = ['', '×']
[tool.ruff.lint.per-file-ignores]
'**/*.ipynb' = [
'T201', # Allow print in notebooks
'F821', # `%%R -o` means that ruff doesn’t understand which variables exist
]
'src/**/*.py' = ['PT'] # No Pytest checks
'docs/**/*.py' = ['INP001'] # No __init__.py in docs
'tests/**/*.py' = [
Expand Down

0 comments on commit a7729d8

Please sign in to comment.