diff --git a/.coveragerc b/.coveragerc index 2683bab..540920b 100644 --- a/.coveragerc +++ b/.coveragerc @@ -4,13 +4,13 @@ [run] branch = True -include = - imagehash/__init__.py - find_similar_images.py +include = + imagehash/__init__.py + find_similar_images.py [report] exclude_lines = - pragma: no cover - def __repr__ - if __name__ == .__main__.: + pragma: no cover + def __repr__ + if __name__ == .__main__.: diff --git a/find_similar_images.py b/find_similar_images.py index a49b788..3237eab 100755 --- a/find_similar_images.py +++ b/find_similar_images.py @@ -48,13 +48,13 @@ def usage(): Identifies similar images in the directory. Method: - ahash: Average hash - phash: Perceptual hash - dhash: Difference hash - whash-haar: Haar wavelet hash - whash-db4: Daubechies wavelet hash - colorhash: HSV color hash - crop-resistant: Crop-resistant hash + ahash: Average hash + phash: Perceptual hash + dhash: Difference hash + whash-haar: Haar wavelet hash + whash-db4: Daubechies wavelet hash + colorhash: HSV color hash + crop-resistant: Crop-resistant hash (C) Johannes Buchner, 2013-2017 """ % sys.argv[0]) diff --git a/setup.cfg b/setup.cfg index 9cc8d16..8fdba30 100644 --- a/setup.cfg +++ b/setup.cfg @@ -6,9 +6,13 @@ count = True statistics = True max-line-length = 127 max-complexity = 10 +quotes=single avoid-escape=True ; This ignore differs than autopep8's ignore as to not autofix tabs to spaces, but still warn when mixed ignore= A001, ; variable "hash" is shadowing a python builtin W191,E111 ; tabs are prefered indentation; E117 ; Bug with pycodestyle for Python 2.7 where it thinks everything is over-indented with tabs +per-file-ignores= + ; False positive with multiline strings https://github.com/PyCQA/pycodestyle/issues/376 + find_similar_images.py: E101