diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 62a7aa3..1b9e9dc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,30 +5,30 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v6.0.0 hooks: - id: check-ast - id: trailing-whitespace - id: end-of-file-fixer - id: mixed-line-ending - id: check-added-large-files - - repo: https://github.com/psf/black - rev: 24.4.2 + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 26.5.1 hooks: - id: black - repo: https://github.com/igorshubovych/markdownlint-cli - rev: v0.41.0 + rev: v0.49.1 hooks: - id: markdownlint - repo: https://github.com/pycqa/flake8 - rev: 7.0.0 + rev: 7.3.0 hooks: - id: flake8 args: - "--max-line-length=88" - "--ignore=E203" - repo: https://github.com/PyCQA/isort - rev: 5.13.2 + rev: 9.0.0b5 hooks: - id: isort args: diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 5978b6c..7f988f3 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -115,12 +115,12 @@ the community. ## Attribution This Code of Conduct is adapted from the [Contributor Covenant][homepage], -version 2.0, available [here](https://www.contributor-covenant.org/version/2/0/code_of_conduct.html). +version [2.0](https://www.contributor-covenant.org/version/2/0/code_of_conduct.html). Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity). [homepage]: https://www.contributor-covenant.org -For answers to common questions about this code of conduct, see the FAQ [here](https://www.contributor-covenant.org/faq). -Translations are available [here](https://www.contributor-covenant.org/translations). +For answers to common questions about this code of conduct, see the [FAQ](https://www.contributor-covenant.org/faq). +[Translations](https://www.contributor-covenant.org/translations) are available. diff --git a/README.md b/README.md index 6c43e34..e3bb1b4 100644 --- a/README.md +++ b/README.md @@ -135,9 +135,8 @@ like finding and fixing bugs and improving / maintaining this package. This package provides utility functions to deeply analyse what's happening behind the stitching. A tutorial was created as [Jupyter -Notebook](https://github.com/lukasalexanderweber/stitching_tutorial). The -preview is -[here](https://github.com/lukasalexanderweber/stitching_tutorial/blob/master/docs/Stitching%20Tutorial.md). +Notebook](https://github.com/lukasalexanderweber/stitching_tutorial) and has a +[rendered preview](https://github.com/lukasalexanderweber/stitching_tutorial/blob/master/docs/Stitching%20Tutorial.md). You can e.g. visualize the RANSAC matches between the images or the seam lines where the images are blended: diff --git a/stitching/images.py b/stitching/images.py index 2be6f4e..d27ea7e 100644 --- a/stitching/images.py +++ b/stitching/images.py @@ -33,10 +33,8 @@ def of( elif Images.check_list_element_types(images, str): return _FilenameImages(images, medium_megapix, low_megapix, final_megapix) else: - raise StitchingError( - """invalid images list: - must be numpy arrays (loaded images) or filename strings""" - ) + raise StitchingError("""invalid images list: + must be numpy arrays (loaded images) or filename strings""") @abstractmethod def __init__(self, images, medium_megapix, low_megapix, final_megapix):