diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0530b90..77eb1ee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -275,7 +275,7 @@ jobs: CIBW_SKIP: '*-win32' CIBW_PLATFORM: '${{ matrix.platform || matrix.os }}' CIBW_BEFORE_BUILD: 'pip install -U cython' - CIBW_TEST_REQUIRES: 'pytest==6.2.2 pytest-mock==3.5.1' + CIBW_TEST_REQUIRES: 'pytest==6.2.5 pytest-mock==3.6.1' CIBW_TEST_COMMAND: 'pytest {project}/tests' CIBW_MANYLINUX_X86_64_IMAGE: 'manylinux2014' CIBW_MANYLINUX_I686_IMAGE: 'manylinux2014' diff --git a/benchmarks/requirements.txt b/benchmarks/requirements.txt index 5c8184b..d32a103 100644 --- a/benchmarks/requirements.txt +++ b/benchmarks/requirements.txt @@ -1,5 +1,5 @@ # no versions since benchmarks should always run with the most recent version of each package -devtools==0.6.1 +devtools==0.7.0 python-dateutil trafaret diff --git a/docs/requirements.txt b/docs/requirements.txt index 4ecee72..f21283c 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,7 +1,7 @@ ansi2html==1.6.0 flake8==3.9.2 -flake8-quotes==3.2.0 -hypothesis==6.13.10 +flake8-quotes==3.3.0 +hypothesis==6.17.4 markdown-include==0.6.0 mdx-truly-sane-lists==1.2 mkdocs==1.1.2 diff --git a/requirements.txt b/requirements.txt index 6619897..694a578 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,8 @@ # requirements for compilation and from setup.py so dependabot prompts us to test with latest version of these packages -Cython==0.29.23;sys_platform!='win32' -devtools==0.6.1 -email-validator==1.1.2 +Cython==0.29.24;sys_platform!='win32' +devtools==0.7.0 +email-validator==1.1.3 dataclasses==0.6; python_version < '3.7' -typing-extensions==3.10.0.0 -python-dotenv==0.17.1 +typing-extensions==3.10.0.2 +python-dotenv==0.19.0 diff --git a/setup.cfg b/setup.cfg index 242bde3..ba05e30 100644 --- a/setup.cfg +++ b/setup.cfg @@ -49,6 +49,7 @@ force_grid_wrap=0 combine_as_imports=True [mypy] +python_version = 3.9 show_error_codes = True follow_imports = silent strict_optional = True diff --git a/tests/mypy/outputs/plugin-fail-strict.txt b/tests/mypy/outputs/plugin-fail-strict.txt index 188f5bb..6606daf 100644 --- a/tests/mypy/outputs/plugin-fail-strict.txt +++ b/tests/mypy/outputs/plugin-fail-strict.txt @@ -15,7 +15,7 @@ 87: error: Missing named argument "c" for "DefaultTestingModel" [call-arg] 87: error: Missing named argument "d" for "DefaultTestingModel" [call-arg] 87: error: Missing named argument "e" for "DefaultTestingModel" [call-arg] -91: error: Name 'Undefined' is not defined [name-defined] +91: error: Name "Undefined" is not defined [name-defined] 94: error: Missing named argument "undefined" for "UndefinedAnnotationModel" [call-arg] 101: error: Missing named argument "y" for "construct" of "Model" [call-arg] 103: error: Argument "x" to "construct" of "Model" has incompatible type "str"; expected "int" [arg-type] @@ -31,7 +31,7 @@ 181: error: Untyped fields disallowed [pydantic-field] 185: error: Unexpected keyword argument "x" for "AliasGeneratorModel2" [call-arg] 186: error: Unexpected keyword argument "z" for "AliasGeneratorModel2" [call-arg] -189: error: Name 'Missing' is not defined [name-defined] +189: error: Name "Missing" is not defined [name-defined] 197: error: No overload variant of "dataclass" matches argument type "Dict[, ]" [call-overload] 197: note: Possible overload variant: 197: note: def dataclass(*, init: bool = ..., repr: bool = ..., eq: bool = ..., order: bool = ..., unsafe_hash: bool = ..., frozen: bool = ..., config: Optional[Type[Any]] = ...) -> Callable[[Type[Any]], Type[Dataclass]] diff --git a/tests/mypy/outputs/plugin-fail.txt b/tests/mypy/outputs/plugin-fail.txt index 862af5d..1619a4e 100644 --- a/tests/mypy/outputs/plugin-fail.txt +++ b/tests/mypy/outputs/plugin-fail.txt @@ -13,14 +13,14 @@ 87: error: Missing named argument "c" for "DefaultTestingModel" [call-arg] 87: error: Missing named argument "d" for "DefaultTestingModel" [call-arg] 87: error: Missing named argument "e" for "DefaultTestingModel" [call-arg] -91: error: Name 'Undefined' is not defined [name-defined] +91: error: Name "Undefined" is not defined [name-defined] 94: error: Missing named argument "undefined" for "UndefinedAnnotationModel" [call-arg] 101: error: Missing named argument "y" for "construct" of "Model" [call-arg] 103: error: Argument "x" to "construct" of "Model" has incompatible type "str"; expected "int" [arg-type] 156: error: Missing named argument "x" for "DynamicAliasModel2" [call-arg] -175: error: unused 'type: ignore' comment -182: error: unused 'type: ignore' comment -189: error: Name 'Missing' is not defined [name-defined] +175: error: unused "type: ignore" comment +182: error: unused "type: ignore" comment +189: error: Name "Missing" is not defined [name-defined] 197: error: No overload variant of "dataclass" matches argument type "Dict[, ]" [call-overload] 197: note: Possible overload variant: 197: note: def dataclass(*, init: bool = ..., repr: bool = ..., eq: bool = ..., order: bool = ..., unsafe_hash: bool = ..., frozen: bool = ..., config: Optional[Type[Any]] = ...) -> Callable[[Type[Any]], Type[Dataclass]] diff --git a/tests/requirements-linting.txt b/tests/requirements-linting.txt index 9d8303b..e99dad3 100644 --- a/tests/requirements-linting.txt +++ b/tests/requirements-linting.txt @@ -1,9 +1,9 @@ -black==21.5b2 +black==21.8b0 flake8==3.9.2 -flake8-quotes==3.2.0 -hypothesis==6.13.10 -isort==5.8.0 -mypy==0.812 +flake8-quotes==3.3.0 +hypothesis==6.17.4 +isort==5.9.3 +mypy==0.910 pycodestyle==2.7.0 pyflakes==2.3.1 -twine==3.4.1 \ No newline at end of file +twine==3.4.2 \ No newline at end of file diff --git a/tests/requirements-testing.txt b/tests/requirements-testing.txt index 33880b1..c2b7ee1 100644 --- a/tests/requirements-testing.txt +++ b/tests/requirements-testing.txt @@ -1,9 +1,9 @@ coverage==5.5 -hypothesis==6.13.10 +hypothesis==6.17.4 # pin importlib-metadata as upper versions need typing-extensions to work if on python < 3.8 importlib-metadata==3.1.0;python_version<"3.8" -mypy==0.812 -pytest==6.2.4 -pytest-cov==2.12.0 +mypy==0.910 +pytest==6.2.5 +pytest-cov==2.12.1 pytest-mock==3.6.1 pytest-sugar==0.9.4