diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst new file mode 100644 index 0000000000..402a1edbba --- /dev/null +++ b/hypothesis-python/RELEASE.rst @@ -0,0 +1,3 @@ +RELEASE_TYPE: patch + +This patch updates our autoformatting tools, improving our code style without any API changes. diff --git a/hypothesis-python/src/hypothesis/errors.py b/hypothesis-python/src/hypothesis/errors.py index 474ce507c8..c342d8ea5e 100644 --- a/hypothesis-python/src/hypothesis/errors.py +++ b/hypothesis-python/src/hypothesis/errors.py @@ -13,6 +13,7 @@ # # END HEADER + class HypothesisException(Exception): """Generic parent class for exceptions thrown by Hypothesis.""" diff --git a/hypothesis-python/src/hypothesis/executors.py b/hypothesis-python/src/hypothesis/executors.py index fd072fb0d4..275f6b9012 100644 --- a/hypothesis-python/src/hypothesis/executors.py +++ b/hypothesis-python/src/hypothesis/executors.py @@ -13,6 +13,7 @@ # # END HEADER + def default_executor(function): # pragma: nocover raise NotImplementedError() # We don't actually use this any more diff --git a/hypothesis-python/src/hypothesis/internal/intervalsets.py b/hypothesis-python/src/hypothesis/internal/intervalsets.py index 72a9cd52a7..426ad420fd 100644 --- a/hypothesis-python/src/hypothesis/internal/intervalsets.py +++ b/hypothesis-python/src/hypothesis/internal/intervalsets.py @@ -13,6 +13,7 @@ # # END HEADER + class IntervalSet: def __init__(self, intervals): self.intervals = tuple(intervals) diff --git a/hypothesis-python/src/hypothesis/internal/lazyformat.py b/hypothesis-python/src/hypothesis/internal/lazyformat.py index ca38137049..8c131f26cf 100644 --- a/hypothesis-python/src/hypothesis/internal/lazyformat.py +++ b/hypothesis-python/src/hypothesis/internal/lazyformat.py @@ -13,6 +13,7 @@ # # END HEADER + class lazyformat: """A format string that isn't evaluated until it's needed.""" diff --git a/hypothesis-python/src/hypothesis/utils/conventions.py b/hypothesis-python/src/hypothesis/utils/conventions.py index 9b1bece8c4..1b591d9845 100644 --- a/hypothesis-python/src/hypothesis/utils/conventions.py +++ b/hypothesis-python/src/hypothesis/utils/conventions.py @@ -13,6 +13,7 @@ # # END HEADER + class UniqueIdentifier: """A factory for sentinel objects with nice reprs.""" diff --git a/requirements/coverage.txt b/requirements/coverage.txt index 165c7c88b7..abf0a90ea6 100644 --- a/requirements/coverage.txt +++ b/requirements/coverage.txt @@ -16,7 +16,7 @@ numpy==1.21.0 # pandas pandas==1.3.0 # via -r requirements/coverage.in -python-dateutil==2.8.1 +python-dateutil==2.8.2 # via pandas pytz==2021.1 # via diff --git a/requirements/tools.txt b/requirements/tools.txt index 633dec3299..4477338d00 100644 --- a/requirements/tools.txt +++ b/requirements/tools.txt @@ -7,9 +7,7 @@ alabaster==0.7.12 # via sphinx appdirs==1.4.4 - # via - # black - # virtualenv + # via black asgiref==3.4.1 # via django attrs==21.2.0 @@ -23,21 +21,23 @@ babel==2.9.1 # via sphinx backcall==0.2.0 # via ipython +backports.entry-points-selectable==1.1.0 + # via virtualenv bandit==1.7.0 # via flake8-bandit -black==21.6b0 +black==21.7b0 # via # blacken-docs # shed blacken-docs==1.10.0 # via -r requirements/tools.in -bleach==3.3.0 +bleach==3.3.1 # via readme-renderer certifi==2021.5.30 # via requests cffi==1.14.6 # via cryptography -chardet==4.0.0 +charset-normalizer==2.0.3 # via requests click==7.1.2 # via @@ -103,7 +103,7 @@ gitdb==4.0.7 # via gitpython gitpython==3.1.18 # via bandit -idna==2.10 +idna==3.2 # via requests imagesize==1.2.0 # via sphinx @@ -169,6 +169,8 @@ pip-tools==6.2.0 # via -r requirements/tools.in pkginfo==1.7.1 # via twine +platformdirs==2.0.2 + # via virtualenv pluggy==0.13.1 # via # pytest @@ -207,13 +209,13 @@ pyparsing==2.4.7 # via packaging pytest==6.2.4 # via -r requirements/tools.in -python-dateutil==2.8.1 +python-dateutil==2.8.2 # via -r requirements/tools.in pytz==2021.1 # via # babel # django -pyupgrade==2.21.0 +pyupgrade==2.21.2 # via shed pyyaml==5.4.1 # via @@ -223,7 +225,7 @@ readme-renderer==29.0 # via twine regex==2021.7.6 # via black -requests==2.25.1 +requests==2.26.0 # via # -r requirements/tools.in # requests-toolbelt @@ -237,7 +239,7 @@ rfc3986==1.5.0 # via twine secretstorage==3.3.1 # via keyring -shed==0.3.6 +shed==0.3.7 # via -r requirements/tools.in six==1.16.0 # via @@ -256,11 +258,11 @@ snowballstemmer==2.1.0 # sphinx sortedcontainers==2.4.0 # via hypothesis (hypothesis-python/setup.py) -sphinx==4.0.3 +sphinx==4.1.1 # via # -r requirements/tools.in # sphinx-rtd-theme -sphinx-hoverxref==0.6b1 +sphinx-hoverxref==0.7b1 # via -r requirements/tools.in sphinx-rtd-theme==0.5.2 # via -r requirements/tools.in @@ -287,12 +289,13 @@ tokenize-rt==4.1.0 toml==0.10.2 # via # -r requirements/tools.in - # black # mypy # pep517 # pytest # tox -tox==3.23.1 +tomli==1.0.4 + # via black +tox==3.24.0 # via -r requirements/tools.in tqdm==4.61.2 # via twine @@ -319,7 +322,7 @@ typing-inspect==0.7.1 # via libcst urllib3==1.26.6 # via requests -virtualenv==20.4.7 +virtualenv==20.6.0 # via tox wcwidth==0.2.5 # via prompt-toolkit