-
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 #50 from CSOgroup/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
- Loading branch information
Showing
7 changed files
with
106 additions
and
108 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,80 +1,80 @@ | ||
fail_fast: false | ||
default_language_version: | ||
python: python3 | ||
node: 16.14.2 | ||
python: python3 | ||
node: 16.14.2 | ||
default_stages: | ||
- commit | ||
- push | ||
- commit | ||
- push | ||
minimum_pre_commit_version: 2.16.0 | ||
repos: | ||
- repo: https://github.com/psf/black | ||
rev: 23.3.0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v3.0.0-alpha.9-for-vscode | ||
hooks: | ||
- id: prettier | ||
- repo: https://github.com/asottile/blacken-docs | ||
rev: 1.14.0 | ||
hooks: | ||
- id: blacken-docs | ||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
- repo: https://github.com/asottile/yesqa | ||
rev: v1.5.0 | ||
hooks: | ||
- id: yesqa | ||
additional_dependencies: | ||
- flake8-tidy-imports | ||
- flake8-docstrings | ||
- flake8-rst-docstrings | ||
- flake8-comprehensions | ||
- flake8-bugbear | ||
- flake8-blind-except | ||
- 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: https://github.com/PyCQA/autoflake | ||
rev: v2.2.0 | ||
hooks: | ||
- id: autoflake | ||
args: | ||
- --in-place | ||
- --remove-all-unused-imports | ||
- --remove-unused-variable | ||
- --ignore-init-module-imports | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 6.0.0 | ||
hooks: | ||
- id: flake8 | ||
additional_dependencies: | ||
- flake8-tidy-imports | ||
- flake8-docstrings | ||
- flake8-rst-docstrings | ||
- flake8-comprehensions | ||
- flake8-bugbear | ||
- flake8-blind-except | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.7.0 | ||
hooks: | ||
- id: pyupgrade | ||
args: [--py3-plus, --py38-plus, --keep-runtime-typing] | ||
- 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.8.0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v4.0.0-alpha.8 | ||
hooks: | ||
- id: prettier | ||
- repo: https://github.com/asottile/blacken-docs | ||
rev: 1.18.0 | ||
hooks: | ||
- id: blacken-docs | ||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.13.2 | ||
hooks: | ||
- id: isort | ||
- repo: https://github.com/asottile/yesqa | ||
rev: v1.5.0 | ||
hooks: | ||
- id: yesqa | ||
additional_dependencies: | ||
- flake8-tidy-imports | ||
- flake8-docstrings | ||
- flake8-rst-docstrings | ||
- flake8-comprehensions | ||
- flake8-bugbear | ||
- flake8-blind-except | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.6.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: https://github.com/PyCQA/autoflake | ||
rev: v2.3.1 | ||
hooks: | ||
- id: autoflake | ||
args: | ||
- --in-place | ||
- --remove-all-unused-imports | ||
- --remove-unused-variable | ||
- --ignore-init-module-imports | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 7.1.1 | ||
hooks: | ||
- id: flake8 | ||
additional_dependencies: | ||
- flake8-tidy-imports | ||
- flake8-docstrings | ||
- flake8-rst-docstrings | ||
- flake8-comprehensions | ||
- flake8-bugbear | ||
- flake8-blind-except | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.17.0 | ||
hooks: | ||
- id: pyupgrade | ||
args: [--py3-plus, --py38-plus, --keep-runtime-typing] | ||
- 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$' |
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,16 +1,16 @@ | ||
# https://docs.readthedocs.io/en/stable/config-file/v2.html | ||
version: 2 | ||
build: | ||
os: ubuntu-20.04 | ||
tools: | ||
python: "3.10" | ||
os: ubuntu-20.04 | ||
tools: | ||
python: "3.10" | ||
sphinx: | ||
configuration: docs/conf.py | ||
# disable this for more lenient docs builds | ||
fail_on_warning: false | ||
configuration: docs/conf.py | ||
# disable this for more lenient docs builds | ||
fail_on_warning: false | ||
python: | ||
install: | ||
- method: pip | ||
path: . | ||
extra_requirements: | ||
- doc | ||
install: | ||
- method: pip | ||
path: . | ||
extra_requirements: | ||
- doc |
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,4 +1,5 @@ | ||
"""Graph utilities.""" | ||
|
||
from __future__ import annotations | ||
|
||
from anndata import AnnData | ||
|
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