Skip to content

Commit

Permalink
Update template to v0.3.1 (#145)
Browse files Browse the repository at this point in the history
Co-authored-by: scverse-bot <None>
Co-authored-by: Philipp A <[email protected]>
  • Loading branch information
scverse-bot and flying-sheep authored Feb 23, 2024
1 parent ad430a6 commit 492698f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
7 changes: 4 additions & 3 deletions .cruft.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"template": "https://github.com/scverse/cookiecutter-scverse",
"commit": "8e96abb5c3e2d5078c44713958da672711cf2a48",
"checkout": "v0.3.0",
"commit": "586b1652162ff7994b0070a034023d64289ae416",
"checkout": "v0.3.1",
"context": {
"cookiecutter": {
"project_name": "scverse-tutorials",
Expand All @@ -13,7 +13,8 @@
"project_repo": "https://github.com/scverse/scverse-tutorials",
"license": "BSD 3-Clause License",
"_copy_without_render": [
".github/workflows/**.yaml",
".github/workflows/build.yaml",
".github/workflows/test.yaml",
"docs/_templates/autosummary/**.rst"
],
"_render_devdocs": false,
Expand Down
14 changes: 8 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,11 @@ bypass-selection = true # This is not a package
line-length = 120

[tool.ruff]
src = ["src"]
line-length = 120
src = ["src"]
extend-include = ["*.ipynb"]

[tool.ruff.lint]
select = [
"F", # Errors detected by Pyflakes
"E", # Error detected by Pycodestyle
Expand All @@ -76,7 +79,7 @@ select = [
"RUF100", # Report unused noqa directives
]
ignore = [
# line too long -> we accept long comment lines; black gets rid of long code lines
# line too long -> we accept long comment lines; formatter gets rid of long code lines
"E501",
# Do not assign a lambda expression, use a def -> lambda expression assignments are convenient
"E731",
Expand All @@ -102,12 +105,11 @@ ignore = [
# We want docstrings to start immediately after the opening triple quote
"D213",
]
extend-include = ["*.ipynb"]

[tool.ruff.pydocstyle]
[tool.ruff.lint.pydocstyle]
convention = "numpy"

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"docs/*" = [
"B018", # Trailing expressions in notebooks are not “useless”
"D103", # No need for docstrings in functions, we use literate programming
Expand All @@ -125,5 +127,5 @@ skip = [
"docs/changelog.md",
"docs/references.bib",
"docs/references.md",
"docs/notebooks/example.ipynb"
"docs/notebooks/example.ipynb",
]

0 comments on commit 492698f

Please sign in to comment.