diff --git a/.bumpversion.cfg b/.bumpversion.cfg index e8e76ce4..0b1a9b10 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.9.2 +current_version = 0.9.2-post1 commit = True tag = False tag_name = {new_version} diff --git a/Makefile b/Makefile index 9cd8d4bc..eb679612 100644 --- a/Makefile +++ b/Makefile @@ -37,12 +37,12 @@ setup: .python-version setup.cfg lint: $(SOURCEFILES) tox -e lint -# TODO (dargueta): Make `clean` work on Windows. Windows doesn't have `rm`. .PHONY: clean clean: - git clean -fd $(DOCSDIR) - rm -rf .tox .cache .pytest_cache *.egg-info *.eggs .coverage dist build .mypy_cache - find . -name '__pycache__' -type d -exec rm -rf '{}' \+ + $(MAKE) -C $(DOCSDIR) clean + $(RM) $(DOCSSOURCE)/binobj.*.rst $(DOCSSOURCE)/binobj.rst $(DOCSSOURCE)/modules.rst + $(RM) -r .tox .cache .pytest_cache *.egg-info *.eggs .coverage dist build .mypy_cache + find . -name '__pycache__' -type d -exec $(RM) -r '{}' \+ # Run the unit tests if the source code has changed. .PHONY: test diff --git a/binobj/__init__.py b/binobj/__init__.py index 022ec4a2..d850cebb 100644 --- a/binobj/__init__.py +++ b/binobj/__init__.py @@ -19,5 +19,5 @@ def __to_version_info(): # Do not modify directly; use ``bumpversion`` command instead. -__version__ = "0.9.2" +__version__ = "0.9.2-post1" __version_info__ = __to_version_info() diff --git a/docs/source/CHANGELOG.rst b/docs/source/CHANGELOG.rst index 517c86ba..a5cc3f0b 100644 --- a/docs/source/CHANGELOG.rst +++ b/docs/source/CHANGELOG.rst @@ -1,6 +1,19 @@ Changelog ========= +0.9.2-post1 +----------- + +Released 2020-09-24 + +Other Changes +~~~~~~~~~~~~~ + +* Loosened version requirement of ``typing-inspect`` package. +* Upgraded some test dependencies +* Improved behavior of ``make clean`` +* Made MyPy settings stricter + 0.9.2 ----- diff --git a/docs/source/conf.py b/docs/source/conf.py index bb70e64b..3548ac73 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -65,7 +65,7 @@ # The short X.Y version. version = "0.9.2" # The full version, including alpha/beta/rc tags. -release = "0.9.2" +release = "0.9.2-post1" # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/setup.cfg b/setup.cfg index 98034cfd..34218c5e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -21,13 +21,13 @@ name: binobj packages: find: url: https://www.github.com/dargueta/binobj ; Do not modify the version manually -- use the bumpversion CLI tool -version: 0.9.2 +version: 0.9.2-post1 [options] install_requires: attrs>=18.2.0 more-itertools>=4.0, <9 - typing-inspect==0.4.* ; python_version<="3.7" + typing-inspect>=0.4.0, <0.7 ; python_version<="3.7" python_requires: >=3.5 [options.extras_require] @@ -37,7 +37,7 @@ dev: tox>=3.0 tox-pyenv>=1.0 lint: - black==19.10b0 + black==20.8b1 flake8==3.8.3 flake8-black==0.2.1 flake8-bugbear==20.1.4 @@ -45,9 +45,10 @@ lint: flake8-debugger==3.2.1 flake8-isort==4.0.0 flake8-logging-format==0.6.0 + isort==5.5.3 mypy==0.782 test: - pytest==6.0.1 + pytest==6.0.2 pytest-cov==2.10.1 pytest-randomly==3.4.1 diff --git a/tox.ini b/tox.ini index 66b0d498..2caf9ea7 100644 --- a/tox.ini +++ b/tox.ini @@ -16,7 +16,7 @@ commands = flake8 [testenv:mypy] basepython = python3.7 deps = -e.[lint] -commands = mypy binobj +commands = mypy --show-error-codes binobj [pytest] filterwarnings = @@ -62,14 +62,14 @@ include_trailing_comma = true [mypy] strict_optional = true -disallow_any_decorated = false +disallow_any_decorated = true disallow_any_generics = true -disallow_any_unimported = false +disallow_any_unimported = true disallow_incomplete_defs = true disallow_subclassing_any = true disallow_untyped_calls = true disallow_untyped_defs = true -# ignore_missing_imports = true +ignore_missing_imports = false warn_unreachable = true warn_unused_ignores = true warn_redundant_casts = true