-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from scverse-bot/template-update-CSOgroup-cell…
…charter-v0.3.1 Update template to v0.3.1
- Loading branch information
Showing
5 changed files
with
100 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,100 +1,34 @@ | ||
diff a/.pre-commit-config.yaml b/.pre-commit-config.yaml (rejected hunks) | ||
@@ -1,50 +1,53 @@ | ||
fail_fast: false | ||
default_language_version: | ||
- python: python3 | ||
+ python: python3 | ||
default_stages: | ||
- - commit | ||
- - push | ||
+ - commit | ||
+ - push | ||
@@ -6,29 +6,18 @@ default_stages: | ||
- push | ||
minimum_pre_commit_version: 2.16.0 | ||
repos: | ||
- - repo: https://github.com/psf/black | ||
- rev: "23.7.0" | ||
- hooks: | ||
- - id: black | ||
- - repo: https://github.com/asottile/blacken-docs | ||
- rev: 1.15.0 | ||
- hooks: | ||
- - id: blacken-docs | ||
- - repo: https://github.com/pre-commit/mirrors-prettier | ||
- rev: v3.0.1 | ||
- hooks: | ||
- - id: prettier | ||
- # Newer versions of node don't work on systems that have an older version of GLIBC | ||
- # (in particular Ubuntu 18.04 and Centos 7) | ||
- # EOL of Centos 7 is in 2024-06, we can probably get rid of this then. | ||
- # See https://github.com/scverse/cookiecutter-scverse/issues/143 and | ||
- # https://github.com/jupyterlab/jupyterlab/issues/12675 | ||
- language_version: "17.9.1" | ||
- - repo: https://github.com/charliermarsh/ruff-pre-commit | ||
- rev: v0.0.283 | ||
- hooks: | ||
- - id: ruff | ||
- args: [--fix, --exit-non-zero-on-fix] | ||
- - repo: https://github.com/pre-commit/pre-commit-hooks | ||
- rev: v4.4.0 | ||
- hooks: | ||
- - id: detect-private-key | ||
- - id: check-ast | ||
- - id: end-of-file-fixer | ||
- - id: mixed-line-ending | ||
- args: [--fix=lf] | ||
- - id: trailing-whitespace | ||
- - id: check-case-conflict | ||
- - repo: local | ||
- hooks: | ||
- - id: forbid-to-commit | ||
- name: Don't commit rej files | ||
- entry: | | ||
- Cannot commit .rej files. These indicate merge conflicts that arise during automated template updates. | ||
- Fix the merge conflicts manually and remove the .rej files. | ||
- language: fail | ||
- files: '.*\.rej$' | ||
+ - repo: https://github.com/psf/black | ||
+ rev: "23.7.0" | ||
+ hooks: | ||
+ - id: black | ||
+ - repo: https://github.com/asottile/blacken-docs | ||
+ rev: 1.15.0 | ||
+ hooks: | ||
+ - id: blacken-docs | ||
+ - repo: https://github.com/pre-commit/mirrors-prettier | ||
+ rev: v3.0.1 | ||
+ hooks: | ||
+ - id: prettier | ||
+ # Newer versions of node don't work on systems that have an older version of GLIBC | ||
+ # (in particular Ubuntu 18.04 and Centos 7) | ||
+ # EOL of Centos 7 is in 2024-06, we can probably get rid of this then. | ||
+ # See https://github.com/scverse/cookiecutter-scverse/issues/143 and | ||
+ # https://github.com/jupyterlab/jupyterlab/issues/12675 | ||
+ language_version: "17.9.1" | ||
+ - repo: https://github.com/astral-sh/ruff-pre-commit | ||
+ rev: v0.0.283 | ||
+ hooks: | ||
+ - id: ruff | ||
+ args: [--fix, --exit-non-zero-on-fix] | ||
+ - repo: https://github.com/pre-commit/pre-commit-hooks | ||
+ rev: v4.4.0 | ||
+ hooks: | ||
+ - id: detect-private-key | ||
+ - id: check-ast | ||
+ - id: end-of-file-fixer | ||
+ - id: mixed-line-ending | ||
+ args: [--fix=lf] | ||
+ - id: trailing-whitespace | ||
+ - id: check-case-conflict | ||
+ # Check that there are no merge conflicts (could be generated by template sync) | ||
+ - id: check-merge-conflict | ||
+ args: [--assume-in-merge] | ||
+ - repo: local | ||
+ hooks: | ||
+ - id: forbid-to-commit | ||
+ name: Don't commit rej files | ||
+ entry: | | ||
+ Cannot commit .rej files. These indicate merge conflicts that arise during automated template updates. | ||
+ Fix the merge conflicts manually and remove the .rej files. | ||
+ language: fail | ||
+ files: '.*\.rej$' | ||
- - repo: https://github.com/psf/black | ||
- rev: "24.2.0" | ||
- hooks: | ||
- - id: black | ||
- - repo: https://github.com/asottile/blacken-docs | ||
- rev: 1.16.0 | ||
- hooks: | ||
- - id: blacken-docs | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v4.0.0-alpha.8 | ||
hooks: | ||
- id: prettier | ||
- # Newer versions of node don't work on systems that have an older version of GLIBC | ||
- # (in particular Ubuntu 18.04 and Centos 7) | ||
- # EOL of Centos 7 is in 2024-06, we can probably get rid of this then. | ||
- # See https://github.com/scverse/cookiecutter-scverse/issues/143 and | ||
- # https://github.com/jupyterlab/jupyterlab/issues/12675 | ||
- language_version: "17.9.1" | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.2.2 | ||
hooks: | ||
- id: ruff | ||
+ types_or: [python, pyi, jupyter] | ||
args: [--fix, --exit-non-zero-on-fix] | ||
+ - id: ruff-format | ||
+ types_or: [python, pyi, jupyter] | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
hooks: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,66 @@ | ||
diff a/pyproject.toml b/pyproject.toml (rejected hunks) | ||
@@ -42,10 +41,11 @@ doc = [ | ||
"ipykernel", | ||
"ipython", | ||
"sphinx-copybutton", | ||
+ "pandas", | ||
@@ -21,13 +21,13 @@ urls.Home-page = "https://github.com/marcovarrone/cellcharter" | ||
dependencies = [ | ||
"anndata", | ||
# for debug logging (referenced from the issue template) | ||
- "session-info" | ||
+ "session-info", | ||
] | ||
test = [ | ||
"pytest", | ||
- "pytest-cov", | ||
+ "coverage", | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"pre-commit", | ||
- "twine>=4.0.2" | ||
+ "twine>=4.0.2", | ||
] | ||
doc = [ | ||
"docutils>=0.8,!=0.18.*,!=0.19.*", | ||
@@ -61,12 +61,15 @@ addopts = [ | ||
"--import-mode=importlib", # allow using test files with same name | ||
] | ||
|
||
[tool.coverage.run] | ||
-[tool.black] | ||
-line-length = 120 | ||
- | ||
[tool.ruff] | ||
-src = ["src"] | ||
line-length = 120 | ||
+src = ["src"] | ||
+extend-include = ["*.ipynb"] | ||
+ | ||
+[tool.ruff.format] | ||
+docstring-code-format = true | ||
+ | ||
+[tool.ruff.lint] | ||
select = [ | ||
"F", # Errors detected by Pyflakes | ||
"E", # Error detected by Pycodestyle | ||
@@ -81,7 +84,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", | ||
@@ -108,10 +111,10 @@ ignore = [ | ||
"D213", | ||
] | ||
|
||
-[tool.ruff.pydocstyle] | ||
+[tool.ruff.lint.pydocstyle] | ||
convention = "numpy" | ||
|
||
-[tool.ruff.per-file-ignores] | ||
+[tool.ruff.lint.per-file-ignores] | ||
"docs/*" = ["I"] | ||
"tests/*" = ["D"] | ||
"*/__init__.py" = ["F401"] | ||
@@ -125,5 +128,5 @@ skip = [ | ||
"docs/changelog.md", | ||
"docs/references.bib", | ||
"docs/references.md", | ||
- "docs/notebooks/example.ipynb" | ||
+ "docs/notebooks/example.ipynb", | ||
] |