|
| 1 | +diff a/pyproject.toml b/pyproject.toml (rejected hunks) |
| 2 | +@@ -7,7 +7,7 @@ name = "spatialdata-plot" |
| 3 | + version = "0.0.1" |
| 4 | + description = "A very interesting piece of code" |
| 5 | + readme = "README.md" |
| 6 | +-requires-python = ">=3.9" |
| 7 | ++requires-python = ">=3.10" |
| 8 | + license = {file = "LICENSE"} |
| 9 | + authors = [ |
| 10 | + {name = "scverse"}, |
| 11 | +@@ -21,19 +21,19 @@ urls.Home-page = "https://github.com/scverse/spatialdata-plot" |
| 12 | + dependencies = [ |
| 13 | + "anndata", |
| 14 | + # for debug logging (referenced from the issue template) |
| 15 | +- "session-info" |
| 16 | ++ "session-info", |
| 17 | + ] |
| 18 | + |
| 19 | + [project.optional-dependencies] |
| 20 | + dev = [ |
| 21 | + "pre-commit", |
| 22 | +- "twine>=4.0.2" |
| 23 | ++ "twine>=4.0.2", |
| 24 | + ] |
| 25 | + doc = [ |
| 26 | + "docutils>=0.8,!=0.18.*,!=0.19.*", |
| 27 | + "sphinx>=4", |
| 28 | + "sphinx-book-theme>=1.0.0", |
| 29 | +- "myst-nb", |
| 30 | ++ "myst-nb>=1.1.0", |
| 31 | + "sphinxcontrib-bibtex>=1.0.0", |
| 32 | + "sphinx-autodoc-typehints", |
| 33 | + "sphinxext-opengraph", |
| 34 | +@@ -61,12 +61,15 @@ addopts = [ |
| 35 | + "--import-mode=importlib", # allow using test files with same name |
| 36 | + ] |
| 37 | + |
| 38 | +-[tool.black] |
| 39 | +-line-length = 120 |
| 40 | +- |
| 41 | + [tool.ruff] |
| 42 | +-src = ["src"] |
| 43 | + line-length = 120 |
| 44 | ++src = ["src"] |
| 45 | ++extend-include = ["*.ipynb"] |
| 46 | ++ |
| 47 | ++[tool.ruff.format] |
| 48 | ++docstring-code-format = true |
| 49 | ++ |
| 50 | ++[tool.ruff.lint] |
| 51 | + select = [ |
| 52 | + "F", # Errors detected by Pyflakes |
| 53 | + "E", # Error detected by Pycodestyle |
| 54 | +@@ -81,7 +84,7 @@ select = [ |
| 55 | + "RUF100", # Report unused noqa directives |
| 56 | + ] |
| 57 | + ignore = [ |
| 58 | +- # line too long -> we accept long comment lines; black gets rid of long code lines |
| 59 | ++ # line too long -> we accept long comment lines; formatter gets rid of long code lines |
| 60 | + "E501", |
| 61 | + # Do not assign a lambda expression, use a def -> lambda expression assignments are convenient |
| 62 | + "E731", |
| 63 | +@@ -95,7 +98,7 @@ ignore = [ |
| 64 | + "D107", |
| 65 | + # Errors from function calls in argument defaults. These are fine when the result is immutable. |
| 66 | + "B008", |
| 67 | +- # __magic__ methods are are often self-explanatory, allow missing docstrings |
| 68 | ++ # __magic__ methods are often self-explanatory, allow missing docstrings |
| 69 | + "D105", |
| 70 | + # first line should end with a period [Bug: doesn't work with single-line docstrings] |
| 71 | + "D400", |
| 72 | +@@ -108,10 +111,10 @@ ignore = [ |
| 73 | + "D213", |
| 74 | + ] |
| 75 | + |
| 76 | +-[tool.ruff.pydocstyle] |
| 77 | ++[tool.ruff.lint.pydocstyle] |
| 78 | + convention = "numpy" |
| 79 | + |
| 80 | +-[tool.ruff.per-file-ignores] |
| 81 | ++[tool.ruff.lint.per-file-ignores] |
| 82 | + "docs/*" = ["I"] |
| 83 | + "tests/*" = ["D"] |
| 84 | + "*/__init__.py" = ["F401"] |
| 85 | +@@ -125,5 +128,5 @@ skip = [ |
| 86 | + "docs/changelog.md", |
| 87 | + "docs/references.bib", |
| 88 | + "docs/references.md", |
| 89 | +- "docs/notebooks/example.ipynb" |
| 90 | ++ "docs/notebooks/example.ipynb", |
| 91 | + ] |
0 commit comments