diff --git a/.napari-hub/DESCRIPTION.md b/.napari-hub/DESCRIPTION.md index 7ecdd97..e841b13 100644 --- a/.napari-hub/DESCRIPTION.md +++ b/.napari-hub/DESCRIPTION.md @@ -1,8 +1,8 @@ - diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 53dc6de..4442a5a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,41 +1,32 @@ +# Configuring https://pre-commit.ci/ +ci: + autoupdate_schedule: monthly + repos: - - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 - hooks: - - id: check-docstring-first - - id: end-of-file-fixer - - id: trailing-whitespace - exclude: ^\.napari-hub/.* - - repo: https://github.com/PyCQA/isort - rev: 5.12.0 - hooks: - - id: isort - - repo: https://github.com/asottile/pyupgrade - rev: v3.10.1 - hooks: - - id: pyupgrade - args: [--py38-plus, --keep-runtime-typing] - - repo: https://github.com/PyCQA/autoflake - rev: v2.2.1 - hooks: - - id: autoflake - args: ["--in-place", "--remove-all-unused-imports"] - - repo: https://github.com/psf/black - rev: 23.9.1 - hooks: - - id: black - - repo: https://github.com/PyCQA/flake8 - rev: 6.1.0 - hooks: - - id: flake8 - additional_dependencies: [flake8-typing-imports>=1.9.0] - - repo: https://github.com/tlambert03/napari-plugin-checks - rev: v0.3.0 - hooks: - - id: napari-plugin-checks - # https://mypy.readthedocs.io/en/stable/introduction.html - # you may wish to add this as well! - # - repo: https://github.com/pre-commit/mirrors-mypy - # rev: v0.910-1 - # hooks: - # - id: mypy + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.4.0 + hooks: + - id: check-docstring-first + - id: check-executables-have-shebangs + - id: check-merge-conflict + - id: check-toml + - id: end-of-file-fixer + - id: mixed-line-ending + args: [--fix=lf] + - id: requirements-txt-fixer + - id: trailing-whitespace + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.0.287 + hooks: + - id: ruff + - repo: https://github.com/psf/black + rev: 23.7.0 + hooks: + - id: black + # - repo: https://github.com/pre-commit/mirrors-mypy + # rev: v1.5.1 + # hooks: + # - id: mypy + # additional_dependencies: + # - types-setuptools + # - types-requests